fix script warnings

This commit is contained in:
Lorenc Pekaj 2019-10-06 22:41:10 +11:00
parent a1bb9d2e7a
commit 2e4905bc80
2 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ CMD:aod( playerid, params[ ] )
DisableRemoteVehicleCollisions( playerid, 0 );
SendClientMessage( playerid, -1, ""COL_PINK"[ADMIN]"COL_WHITE" You have disabled administration mode." );
}
SendClientMessageFormattedToAll( -1, ""COL_PINK"[ADMIN]"COL_WHITE" %s(%d) is now %s-duty.", ReturnPlayerName( playerid ), playerid, p_AdminOnDuty{ playerid } == true ? ( "on" ) : ( "off" ) );
SendClientMessageToAllFormatted( -1, ""COL_PINK"[ADMIN]"COL_WHITE" %s(%d) is now %s-duty.", ReturnPlayerName( playerid ), playerid, p_AdminOnDuty{ playerid } == true ? ( "on" ) : ( "off" ) );
SetPlayerColorToTeam( playerid );
return 1;
}

View File

@ -533,13 +533,13 @@ thread OnPlayerBanLog( playerid, const Name[ ] )
ban_ip[ 16 ],
ban_reason[ 80 ],
ban_by[ 24 ],
ban_date,
// ban_date,
ban_expire
;
for ( new row = 0; row < rows; row ++ )
{
ban_date = cache_get_field_content_int( row, "DATE" );
// ban_date = cache_get_field_content_int( row, "DATE" );
ban_expire = cache_get_field_content_int( row, "EXPIRE" );
cache_get_field_content( row, "IP", ban_ip );
cache_get_field_content( row, "REASON", ban_reason );