05.04.2018, 18:00
Quote:
Now working, but, the most smaller run only .. so, if have 4 player who PayCheck > 0, code run 4x for the most smaller ID ..
|
PHP код:
for(playerid = 0, MaxPlayer = GetPlayerPoolSize(); playerid <= MaxPlayer; playerid++)
{
if(!IsPlayerConnected(playerid) || IsPlayerNPC(playerid))
continue;
if( CompareEx( NAME, PlayerName( playerid ) ) )
SendFormatMessage( playerid, -1, "[{f3ff4a} SZERVER {ffffff}] Fizetйsed бtutalva a bankszбmlбdra! ( {f3ff4a}$%s{ffffff} )", FormatNumber( PAY ) );
}