SA-MP Forums Archive
New to INI and 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: New to INI and Enum (/showthread.php?tid=420172)



New to INI and Enum - Nathan_Taylor - 03.03.2013

So, I have the following script..
http://pastebin.com/LCXZsNcC

The only use of the INI file at the moment is to auto-spawn the player at their last known location, with their last known skin, and money amount. I have 2 errors.

1) The script is spawning the player in the correct spot, with the correct money, but when I spawn, I am frozen. The game is still going, but I can't move/look around.

2) As a test, I am sending a new "SendClientMessage" on login if the user's admin level > 1. Now, If I set my admin level to 1, no message appears, which is what should happen. However, if I set it to 2, 3, 4, 5, 6, 7 etc... it returns "Admin Level: 9" (with that weird double spacing)

Anyone have any ideas as to what the problem is? Again, it is probably something stupid, I am new to using INIs and enums. Also, if you see anything else that you think I could be doing in a better way, let me know, always looking for some good advice