Warum speichert mein OnPlayerDisconnect nicht beim Disconnecten ?
public OnPlayerDisconnect(playerid, reason)
{
new query[256];
mysql_format(handle, query, sizeof(query), "UPDATE users SET level = '%d', money = '%d', kills = '%d', deaths = '%d' WHERE id = '%d'",
PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pMoney], PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][p_id]);
print("Gespeichert");
return 1;
}
Der Print gibt aus den Befehl beendet zu haben.