08.12.2009, 15:03
Basic code:
Wrong:
Correct:
pawn Код:
new
myArray[50];
GetPlayerName(playerid, myArray, MAX_PLAYER_NAME);
format(myArray, sizeof(myArray), "%s used /setskin command.", myArray);
Admin(myArray);
Quote:
Originally Posted by Sami_
Код:
stock Admin(msg[]) { for(new i 0; i<GetMaxPlayers(); i++ { if(IsPlayerConnected(i) && IsPlayerAdmin(i)) SendClientMessage(i,white,msg); } } |
pawn Код:
stock Admin(msg[])
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && IsPlayerAdmin(i)) SendClientMessage(i, white, msg);
}
}