Problem(error/warning): Ovako, kada uradim /lp i odgovorim igracu ono samo njemu posalje "Admin/GM je odg. na tvoje pitanje, da vidite odg.. itd" ali sam postavio da staffu koji mu je odgovorio da u chatu ispise "Odgovorili ste igracu...itd" ali ono ne ispise vec samo prazne linije posalje u chat.
Dio skripte: [pawn] if(dialogid == 422)
{
if(!response) return 1;
if( response ) {
new askQ = -1;
for( new id = 1; id < MAX_ASKQS; id++ ) {
if( adMaskqList[ id ][ askqSend ] == false ) {
askQ = id;
break;
}
}
if( askQ == -1 ) return SCM( playerid, -1, "Vec ima maksimalan broj poslatih pitanja." );
adMaskqList[ askQ ][ askqSend ] = true;
adMaskqList[ askQ ][ askqID ] = playerid;
askqInfo[ playerid ][ askqSended ] = true;
askqInfo[ playerid ][ askqAnswered ] = false;
strmid( adMaskqList[ askQ ][ askqOwner ], GetName( playerid ), 0, strlen( GetName( playerid ) ), 32 );
strmid( adMaskqList[ askQ ][ askqQuestion ], inputtext, 0, strlen( inputtext ), 128 );
SCM( playerid, -1, "Poslao si pitanje administratorima." );
format( globalstring, sizeof( globalstring ), ""CRVENA"[Pitanje] %s je poslao pitanje.( /lp )", GetName( playerid ) );
AdminGamemaster( -1, globalstring );
}
return 1;
}
if(dialogid == 424)
{
if( !response ) return true;
if( response ) {
listitem++;
new string[ 256 ];
if( adMaskqList[ listitem ][ askqSend ] == false ) return SCM( playerid, -1, "U ovom slotu nema pitanja." );
IzabraniAskQ[ playerid ] = listitem;
format( string, sizeof( string ), "Igrac %s je poslao pitanje.\n\nPitanje: %s", adMaskqList[ listitem ][ askqOwner ], adMaskqList[ listitem ][ askqQuestion ] );
SPD( playerid, 425, DSI, "Pitanje", string, "Odgovori", "Odustani" );
}
return 1;
}
if(dialogid == 425)
{
if( !response ) return true;
if( response ) {
new text[ 128 ];
if( sscanf( inputtext, "s[128]", text ) ) return 1;
new askid = IzabraniAskQ[ playerid ];
if( adMaskqList[ askid ][ askqSend ] == false ) return SCM( playerid, -1, "U ovom slotu nema pitanja." );
adMaskqList[ askid ][ askqSend ] = false;
new id = adMaskqList[ askid ][ askqID ];
IzabraniAskQ[ playerid ] = -1;
if( strcmp( GetName( id ), adMaskqList[ askid ][ askqOwner ], true ) == 0 ) {
askqInfo[ id ][ askqAnswered ] = true;
strmid( askqInfo[ id ][ askqAdmin ], GetName( playerid ), 0, strlen( GetName( playerid ) ), 32 );
strmid( askqInfo[ id ][ askqAnswer ], text, 0, strlen( text ), 128 );
SendClientMessageEx( playerid, -1, "Odgovorili ste igracu %s.", id );
SendClientMessageEx( playerid, -1, "Vas odgovor glasi: %s.", text );
SendClientMessage( id, -1, "Admin/GameMaster je odgovorio na tvoje pitanje." );
SendClientMessage( id, -1, "Da pogledate odgovor ukucajte "SIVA"'/pogledajodgovor'." );
strmid( adMaskqList[ askid ][ askqOwner ], "None", 0, strlen( "None" ), 32 );
adMaskqList[ askid ][ askqID ] = -1;
}
else {
if( id != IPI ) {
askqInfo[ id ][ askqSended ] = false;
askqInfo[ id ][ askqAnswered ] = false;
strmid( askqInfo[ id ][ askqAdmin ], "None", 0, strlen( "None" ), 32 );
strmid( askqInfo[ id ][ askqAnswer ], "None", 0, strlen( "None" ), 128 );
}
strmid( adMaskqList[ askid ][ askqOwner ], "None", 0, strlen( "None" ), 32 );
adMaskqList[ askid ][ askqID ] = -1;
SCM( playerid, -1, "Taj igrac nije online." );
return 1;
}
}
return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): ///
Slika/video ingame problema(obavezno ako je ingame problem): http://prntscr.com/j9zjc9
[pawn] SendClientMessageEx( playerid, -1, "Odgovorili ste igracu %s.", GetName(id) );
[/pawn]