SA-MP Forums Archive
PVar Question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PVar Question (/showthread.php?tid=147933)



PVar Question - cAMo - 15.05.2010

How would you write this using PVar?

LoginAttempts[playerid]++;


SetPVarInt(playerid, "LoginAttempts", ++); Is that right?

ie: Add 1


Re: PVar Question - Simon - 15.05.2010

SetPVarInt(playerid, "LoginAttempts", GetPVarInt(playerid, "LoginAttempts") + 1);


Re: PVar Question - cAMo - 15.05.2010

Great, thank you!