Posts: 913
Threads: 70
Joined: Apr 2009
Reputation:
0
Use this:
SetPVarInt(playerid, "Thing1", 23);
SetPVarInt(playerid, "Thing2", 34);
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
Hmm.. this is only way?
because than script getting full very fast, because can't use for(new .....
Thing[playerid][i] = 0; etc
Posts: 1,594
Threads: 61
Joined: Oct 2009
Reputation:
0
So, why don't you want to use the variables? I always work with them, its easier to script with them, and better for loops.
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
Well, yeah^^, but I read in Server updates page, that its save a lot of Memory, All Variables set to 0 automaticly after player leaves server, also don't need to spam half of script with new Things many....
EDIT, Thx Dice7, I will try
Posts: 2,322
Threads: 260
Joined: Jul 2010
Reputation:
0
try to use
SetPVarInt(playerid, "Thing1", 23);
SetPVarInt(playerid, "Thing2", 34);
Posts: 517
Threads: 22
Joined: Mar 2010
Reputation:
0
Only use PVars for things that need to be shared across scripts, if not, why use PVARS?
Functions are SLOWER than varibles, so the pData array would be best.