SA-MP Forums Archive
scripting help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: scripting help (/showthread.php?tid=482446)



scripting help - MahdiGames - 21.12.2013

I got this error then my server crashed down :/ what shall i do
Код:
[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):
Under OnPlayerDisconnect:
Код:
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;
}



Re: scripting help - Threshold - 21.12.2013

Remove this probably? :/
pawn Код:
PlayCrimeReportForPlayer(playerid, playerid, 3);



Re: scripting help - MahdiGames - 21.12.2013

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
Remove this probably? :/
pawn Код:
PlayCrimeReportForPlayer(playerid, playerid, 3);
Ok thanks .