21.12.2013, 07:46
I got this error then my server crashed down :/ what shall i do
Under OnPlayerDisconnect:
Код:
[02:30:58]+ Crash caused by an unknown error in PlayCrimeReportForPlayer at address 0x8 [02:30:58]+ Stack trace of gamemodes/SPA.amx (most recent call first):
Код:
public OnPlayerDisconnect(playerid, reason) { ARDisconnect(playerid); //Add This on TOP of OnPlayerDisconnect.antibots SendDeathMessage(INVALID_PLAYER_ID, playerid, 201); KillTimer( PlayerInfo[playerid][SpawnTimer] ); DMZone[playerid] = 0; TextDrawHideForPlayer(playerid, Textdraw0); TextDrawHideForPlayer(playerid, Textdraw1); TextDrawHideForPlayer(playerid, Textdraw2); TextDrawHideForPlayer(playerid, Textdraw3); TextDrawHideForPlayer(playerid, Textdraw4); TextDrawHideForPlayer(playerid, Textdraw5); PlayCrimeReportForPlayer(playerid, playerid, 3); new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,sizeof(pName)); if(udb_Exists(pName)) { dUserSetINT(pName).("InDm",0); } return 1; }