One very simple 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: One very simple question! (
/showthread.php?tid=162781)
One very simple question! -
baske007 - 24.07.2010
Hello,
One simple straight to the point question:
How do I empty an array?
Thanks
Bas
Re: One very simple question! -
Ash. - 24.07.2010
wiki.sa-mp.com
Re: One very simple question! -
baske007 - 24.07.2010
-.- I already searched there...
Re: One very simple question! -
Ash. - 24.07.2010
I read it the other day! I swear i did...
Ill take a look for you
Re: One very simple question! -
Ash. - 24.07.2010
Hmm, i cant seem to find it, but i swear its something to do with an if lol. I only skimmed the page looking for something else but i definetly saw it. :S
Re: One very simple question! -
baske007 - 24.07.2010
:P
My script just dont want to work, this is so DAMN ANNOYING.
Sorry
Re: One very simple question! -
Ash. - 24.07.2010
What are you trying to do anyway? If you dont want to post it PM me with a pastebin link or something. Ill help you out if i can
Re: One very simple question! -
VictorMartinez - 24.07.2010
set everything to 0, use a loop
Re: One very simple question! -
Grim_ - 24.07.2010
Show the array and I'll do it for you.
Re: One very simple question! -
baske007 - 24.07.2010
All right guys,
I will post my script here
The problem is as follows:
The script uses MySQL to get some data, like the X, Y and Z position. When I start the server, it works fine. I can login, and I spawn at the position defined in the database.
But, when I restart the client without restarting the server, I can login, it checks if the password is correct, but I don't spawn anymore!
It's so annoying. I tried many different things. If you place a message in the continuelogin function, I get the x, y and z coordinates just fine.
http://pastebin.com/xHRWi9TH
I hope I will get an answer soon, because I can't continue my gamemode now :S
Thanks so far
Bas