Server shutting down / Crashing
#1

Код:
[16:38:36] [debug] Server crashed while executing basicc.amx
[16:38:36] [debug] AMX backtrace:
[16:38:36] [debug] #0 00000065 in ?? () at <unknown file>:0
[16:38:36] [debug] #1 00000065 in public cmd_report () at <unknown file>:0
[16:38:36] [debug] #2 native CallLocalFunction () from sampsvr-port_1966
[16:38:36] [debug] #3 0004c824 in public OnPlayerCommandText (playerid=1, cmdtext[]=@027ef25c "/report eee") at C:\Users\Toni\Desktop\New folder\pawno\include\zcmd.inc:108
Any help about that? What's reason of it
Reply
#2

Paste (OnPlayerCommandText ) and /report commad here.
Reply
#3

Quote:
Originally Posted by Bolex_
Посмотреть сообщение
Paste (OnPlayerCommandText ) and /report commad here.
Код:
//==============================================================================
CMD:report( playerid, params[] ) {
    if( PlayerCuffed[ playerid ] >= 1 ) return GRESKA( playerid, "Ne mozes koristiti komandu kad si cuffovan ili tazovan.");
    if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return GRESKA( playerid, "Ne mozes da koristis ovu komandu dok si u zatvoru." );
    if( ServerInfo[ Report ] == false ) return GRESKA( playerid, "Trenutno nije moguce slanje reporta Admin timu." );
    if( PlayerInfo[ playerid ][ xMute ] != 0) return GRESKA( playerid, "Ne mozete pricati, usutkani ste.");
    new id, rstring[256], string[ 234 ];
    if( sscanf( params, "s[256]", id, rstring ) ) return SendUsageMessage( playerid, "/report [ Text ]");
    if( ReportGlobal[ playerid ] > 0 ) return GRESKA( playerid, "Morate cekati 60 sekundi prije novog reporta!");
	if( id == IPI ) return GRESKA( playerid, "Pogresan ID igraca." );
	format( string, sizeof( string ), ""col_server"|R| %s(ID:%d) -> %s(ID:%d): %s", ImeIgraca( playerid ), playerid, ImeIgraca( id ), id, rstring );
	AdminRPoruka( -1, string );
 	SCM( playerid, ZUTA, "Online Admin ce vam odgovoriti u najkracem mogucem roku.." );
 	SendClientMessageEx( playerid, ZUTA, "Vas report glasi: %s." , rstring );
 	ReportGlobal[ playerid ] = 60;
 	return 1;
}
Dont Have OnPlayerCommandText in gamemode
Reply
#4

pawn.cfg

Код:
-r -d3 -Z+
Reply
#5

Quote:

if( sscanf( params, "s[256]", id, rstring ) ) return SendUsageMessage( playerid, "/report [ Text ]");

This line would cause crash replace it with this

PHP код:
 if( sscanfparams"s[256]"rstring ) ) return SendUsageMessageplayerid"/report [ Text ]"); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)