29.10.2015, 09:26
(
Последний раз редактировалось itsCody; 29.10.2015 в 10:01.
)
What does it say when you print under catching the data?
If it's all 0's and doesn't return anything check your mysql logs for any errors. And if you don't have it place this in your gamemode.
I don't know which mysql plugin you're using so im hoping that callback will work
PHP код:
printf("Data for ID %i: Admin: %i | Helper: %i | Donator: %i | Kills: %i | Deaths: %i | Score: %i | Money %i", playerid, PlayerInfo[playerid][Level], PlayerInfo[playerid][Helper], PlayerInfo[playerid][dRank], PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths], PlayerInfo[playerid][Score], PlayerInfo[playerid][Money]);
PHP код:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
{
new string[100];
printf("Error ID: %i", errorid);
printf("Error: %s", error);
printf("Callback: %s", callback);
printf("Query: %s", query);
return 1;
}