View Single Post
Old 31/01/2014, 04:41 PM   #27
Tamer's Avatar
Join Date: Nov 2011
Location: Turkey
Posts: 1,096
Reputation: 172
Default Re: MySQL Registration System [Threaded Queries(R33+) + Whirlpool]

I found a bug. When you register and quit, your stats are not saved. To re-produce the bug follow these steps:

Copy the whole tutorial code,

Add this command to the script:
pawn Code:
    pInfo[playerid][Admin] = 8;
        pInfo[playerid][VIP] = 8;
        pInfo[playerid][Money] = 8;
        return 1;

compile it, open the server, make sure all MySQL databases are running and it connected.

Register to the server and execute the /statson command, then quit the server. Check your MySQL databases, the info's will not be updated. However, the user will be registered.

Then, re-join to the server (make sure you are registered) you will have a login window, which is normal. Now execute the /statson command and quit. Now your stats will be saved.

This is pretty annoying. Stats should save as soon as the player registers. It should not wait for the player to re-connect.
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.

The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.
Tamer is offline   Reply With Quote