OnPlayerText
#4

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


Messages In This Thread
OnPlayerText - by _Sami_ - 08.12.2009, 14:38
Re: OnPlayerText - by Correlli - 08.12.2009, 14:40
Re: OnPlayerText - by _Sami_ - 08.12.2009, 14:49
Re: OnPlayerText - by Correlli - 08.12.2009, 15:03
Re: OnPlayerText - by _Sami_ - 08.12.2009, 15:30
Re: OnPlayerText - by Correlli - 08.12.2009, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)