SA-MP Forums Archive
How to get a player Var? - 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: How to get a player Var? (/showthread.php?tid=359687)



How to get a player Var? - Kain1297 - 14.07.2012

Hello again, i want to know if there is any way to get a player variable ? i wanna make something like this
saves the player items(variables) and then restore em, like Backing up items, or Item bank system.



Re: How to get a player Var? - Ballu Miaa - 14.07.2012

Here's an example:
pawn Код:
enum YourEnum
{
    UserName[MAX_PLAYER_NAME]
    Pass[36],
    Admin,
    Kills,
    Deaths
};
new PlayerVariables[MAX_PLAYERS][YourEnum]



Respuesta: How to get a player Var? - Kain1297 - 15.07.2012

Well, im actually using Arrays, is there anyway i can GetArray and then use it later?


Re: How to get a player Var? - Ballu Miaa - 15.07.2012

Try this link!