03.05.2011, 14:02
So here is my code.
The thing is, no-one can see the text! neither I neither nobody on the server.
Sometimes it works, sometimes it doesn't, sometimes works like : I can see the text sent, but others don't, or they can see it but i don't...
I tried even foreach, same result, any deas?
This problem is really stupid...
pawn Код:
for ( new i = 0; i < MAX_PLAYERS; i++ )
{
if ( IsPlayerConnected( i ) )
{
if ( P_DATA[ i ][ Level ] > 0 ){
new
iStr[ 160 ];
format( iStr, sizeof (iStr), "[ADMIN CHAT] "GREY"%s:"W" %s", Name( playerid ), text[ 1 ] );
SendClientMessage( i, 0xFF0000FF, iStr );
print(iStr);
return 0;
}
}
}
Sometimes it works, sometimes it doesn't, sometimes works like : I can see the text sent, but others don't, or they can see it but i don't...
I tried even foreach, same result, any deas?
This problem is really stupid...