[Help] Loading accounts mysql
#2

1. Print the value of PlayerInfo[playerid][pReg] to see if it is actually one.

pawn Код:
printf("%d", PlayerInfo[playerid][pReg]);
2. Make sure that DatabaseID[playerid] is the right ID. Print the whole query
pawn Код:
print(Query);
3. This isn't related to the issue but you should have mysql_free_result after storing a value.

4. Make sure that you have the right amount of arguments in sscanf.

5. Make sure that on OnPlayerDisconnect, you are using update instead of insert to save the players stats.
Reply


Messages In This Thread
[Help] Loading accounts mysql - by tony_fitto - 08.09.2011, 20:56
Re: [Help] Loading accounts mysql - by [HiC]TheKiller - 08.09.2011, 21:14

Forum Jump:


Users browsing this thread: 1 Guest(s)