Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
callClientFunc and giveItem
#1
What could be the problem?
Code:
local file = fileOpen("Database/Inventory/" + getPlayerName(pid) + ".txt","r+");
    if (file)
    {
        for(local i = 0; i < 120; ++i)
        {
            local item = fileRead(file);
            local amount = fileRead(file);
            local equipped = fileRead(file);
            if (item)
            {
                print(item + " " + amount + " " + equipped);
                callClientFunc(pid,"giveItem",item,amount);
            };
        };
    };
    fileClose(file);
Discord: I'm not a spy...#9943.
GG: 60474243.

[Image: OsmithREV.gif]
[Image: 76561198181768479.png]
Reply


Messages In This Thread
callClientFunc and giveItem - by Osmith - 18.02.2016, 11:31
RE: callClientFunc and giveItem - by muu - 18.02.2016, 11:47
RE: callClientFunc and giveItem - by Bimbol - 18.02.2016, 12:58
RE: callClientFunc and giveItem - by Osmith - 18.02.2016, 13:00
RE: callClientFunc and giveItem - by Bimbol - 18.02.2016, 13:04

Possibly Related Threads…
Thread Author Replies Views Last Post
  items and items.xml Utautai 2 2,438 12.09.2020, 21:51
Last Post: Utautai
  GiveItem with removeItem Flowa 3 2,779 11.02.2020, 16:16
Last Post: Quarchodron
  addEvent and function of class Xardas0327 4 4,055 23.05.2016, 10:22
Last Post: Xardas0327
Question Diagonal and PPI Osmith 0 1,955 21.04.2016, 11:44
Last Post: Osmith
  Database and other Question (new team) Kemi 18 12,220 09.02.2016, 22:23
Last Post: Kemi

Forum Jump:


Users browsing this thread: 1 Guest(s)