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



Enum define - lukas567 - 16.10.2011

Hey!
How to define number to word checking enum? Like if enum member is true so define bag is 30. But if false define bag will be just 20.
Thanks!


Re: Enum define - DaRkAnGeL[NBK] - 16.10.2011

dont understand the question


Re: Enum define - Knight_Rider - 16.10.2011

write it correctly..!!


Re: Enum define - Kush - 16.10.2011

If I understood correctly, initialize the variable as a boolean data type then you may use your if and else statement.