[HELP] convert from pvar to global variable - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] convert from pvar to global variable (
/showthread.php?tid=593510)
[HELP] convert from pvar to global variable -
Luca12 - 06.11.2015
Hello how can I this code turn from pvar to global variable? Thanks
pawn Код:
SetPVarInt(playerid, "Slot_3", GetPVarInt(playerid, "Slot_3")+ammo);
Re: [HELP] convert from pvar to global variable -
AbyssMorgan - 06.11.2015
example:
PHP код:
//top
new variable;
variable = GetPVarInt(playerid, "Slot_3");
Re: [HELP] convert from pvar to global variable -
[ABK]Antonio - 06.11.2015
PVars are already global variables, not sure what you mean?
Re: [HELP] convert from pvar to global variable -
Luca12 - 06.11.2015
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