Posts: 516
Threads: 77
Joined: Dec 2011
Reputation:
0
14.12.2013, 02:36
(
Last edited by ZBits; 27/06/2015 at 09:31 AM.
)
Hi, i looked at a tutorial on SA:MP forums for a mysql registration system. I got one and it works somehwhat fine.
Now the problem is, except for the Username and Password, nothing else saves. The score stays at 0, the admin level stays at 0 and same with deaths and kills.
Code Removed -
Problem fixed
Posts: 1,464
Threads: 90
Joined: Aug 2009
Reputation:
0
Are you sure it even successfully queries? Check the database and see if it changes your admin level in your database. What may be causing you to just receive your admin temporarily before relogging is when you set:
pInfo[target][pAdmin] = level;
However if the query didn't go through successfully, that code above is useless as it doesn't save in the database to load next time the user logs in.
Posts: 516
Threads: 77
Joined: Dec 2011
Reputation:
0
14.12.2013, 02:50
(
Last edited by ZBits; 14/12/2013 at 03:24 AM.
)
No it does not change in my database, only gives me the rights temporarily in game until relog
Posts: 516
Threads: 77
Joined: Dec 2011
Reputation:
0
Sorry for that bad English up there, idk what happened to it.
Now, yes it doesn't update in my database... I dont get what you said "you query doesn't work", if its temporary... how do i make it save in my database? and not assign myself rank every time i log in.