08.09.2011, 21:14
1. Print the value of PlayerInfo[playerid][pReg] to see if it is actually one.
2. Make sure that DatabaseID[playerid] is the right ID. Print the whole 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.
pawn Код:
printf("%d", PlayerInfo[playerid][pReg]);
pawn Код:
print(Query);
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.