09.10.2013, 11:42
Quote:
pawn Код:
|
Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success ) { new msg_[ 64 ], name_[ MAX_PLAYER_NAME ] ; GetPlayerName( playerid, name_, MAX_PLAYER_NAME ); format( msg_, sizeof( msg_ ), "%s used: %s", name_, cmdtext ); // SendMessageToAdmins or if you have any function to do that.. // OR ELSE.. USE: for(new i = 0; i < MAX_PLAYERS; i++ ) { if( !IsPlayerConnected( i ) || if( IsPlayerAdmin( i )) continue; // Change pInfo[ i ][ pAdmin ] to what you use for admins' levels SendClientMessage( i, 0xFFFF00FF, msg_ ) } return 1; }
Код:
C:\Users\John\Desktop\Server\gamemodes\FristGM.pwn(651) : error 029: invalid expression, assumed zero C:\Users\John\Desktop\Server\gamemodes\FristGM.pwn(651) : error 001: expected token: ";", but found "continue" C:\Users\John\Desktop\Server\gamemodes\FristGM.pwn(653) : warning 225: unreachable code C:\Users\John\Desktop\Server\gamemodes\FristGM.pwn(654) : error 001: expected token: ";", but found "}" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase