Posts: 1,018
Threads: 320
Joined: Jul 2010
Hello how can I this code turn from pvar to global variable? Thanks
pawn Код:
SetPVarInt(playerid, "Slot_3", GetPVarInt(playerid, "Slot_3")+ammo);
Posts: 1,208
Threads: 36
Joined: Apr 2015
example:
PHP код:
//top
new variable;
variable = GetPVarInt(playerid, "Slot_3");
Posts: 1,223
Threads: 5
Joined: Sep 2011
Reputation:
0
PVars are already global variables, not sure what you mean?
Posts: 1,018
Threads: 320
Joined: Jul 2010
this is pvar slot3 then I want it in something like
new slot3[max_players];
Slot3[playerid] = 1;
or PlayerInfo[playerid][Slot3] = 1;
Like that