21.11.2014, 01:30
Assuming you have the enumerator and data saving setup:
pInfo[playerid][Field] is used to access the enumerator, yours may be different depending on how your setup is.
pInfo is the name of the variable used to access the emunerator.
playerid is the player id to use to access the enumerator.
Field is the actual name of the enumerator you are trying to access.
My explanations might seem different to others but that's how I choose to understand it.
pawn Код:
format(string),sizeof(string),"Test: %d",pInfo[playerid][Test]);
SendClientMessage(playerid,COLOR,string);
pInfo is the name of the variable used to access the emunerator.
playerid is the player id to use to access the enumerator.
Field is the actual name of the enumerator you are trying to access.
My explanations might seem different to others but that's how I choose to understand it.