SA-MP Forums Archive
HELP Enum - 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: HELP Enum (/showthread.php?tid=505123)



HELP Enum - Mriss - 07.04.2014

How do I set an enum?

e.g Like if they buy something it will set their [pInfo][Playerid][pInventoryHasKey]

Make the value 1?


Re: HELP Enum - K9IsGodly - 07.04.2014

PlayerInfo(assuming this is what is tied to it)

So:

PlayerInfo[playerid][pInventoryHasKey] +=1;

or:

PlayerInfo[playerid][pblahblah] ++;


Re: HELP Enum - Mriss - 07.04.2014

Oh lol, How cool is that I was just reading your thread lol

http://forum.sa-mp.com/showthread.ph...25#post2982025

then I switched tab and Wallah! lol

Thanks Man


Re: HELP Enum - K9IsGodly - 07.04.2014

Quote:
Originally Posted by Mriss
Посмотреть сообщение
Oh lol, How cool is that I was just reading your thread lol

http://forum.sa-mp.com/showthread.ph...25#post2982025

then I switched tab and Wallah! lol

Thanks Man
Haha yeah no problem!