SA-MP Forums Archive
Not spawning in correct place - 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: Not spawning in correct place (/showthread.php?tid=623239)



Not spawning in correct place - Thom9son - 29.11.2016

I believe this is the code for the section that applies to my problem: http://pastebin.com/9ym0TxcV

Basically, when connect, I get a dialog box asking me to register my password. However, when I re-log, I have to register the account again. So, the accounts are not saving properly.

Also, when I spawn, it is spawning me in the default spawn in the middle of Blueberry. However, upon fixing the above issue, I presume this should correct itself as there will be an account for the player?


Re: Not spawning in correct place - aoky - 29.11.2016

do you have the correct path in your scriptfiles?


Re: Not spawning in correct place - Thom9son - 29.11.2016

Here is the code I have for connecting to the mysql database. Presumably, that should do? If not, could you tell me what to do?

Quote:

mysql_connect("localhost","root","testserver", "");