PVar Question
#1

How would you write this using PVar?

LoginAttempts[playerid]++;


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

ie: Add 1
Reply
#2

SetPVarInt(playerid, "LoginAttempts", GetPVarInt(playerid, "LoginAttempts") + 1);
Reply
#3

Great, thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)