[HELP] convert from pvar to global variable
#1

Hello how can I this code turn from pvar to global variable? Thanks

pawn Код:
SetPVarInt(playerid, "Slot_3", GetPVarInt(playerid, "Slot_3")+ammo);
Reply
#2

example:
PHP код:
//top
new variable;
variable GetPVarInt(playerid"Slot_3"); 
Reply
#3

PVars are already global variables, not sure what you mean?
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)