OnPlayerCommandText :(
#5

Quote:
Originally Posted by Aerotactics
Посмотреть сообщение
Ok, I think I understand. That's going to require more script.
Try something like:
pawn Код:
public OnPlayerText(playerid) // or whatever
{
for (new i=0;i<MAX_PLAYERS;i++)
{
If(BigEars)[i] == 1)
{
SendClientMessage(...); // replace with message data of course
}
else
{
 SendLocalMessage(...);
}
}
return 0; //don't want to send the message twice.
}
I don't know, I'm getting tired.
Thank you very much mate!!

But what is
Код:
for (new i=0;i<MAX_PLAYERS;i++)
What is the "i" ? what is mean of it?
Reply


Messages In This Thread
OnPlayerCommandText :( - by ChristianIvann09 - 24.03.2014, 07:38
Re: OnPlayerCommandText :( - by Aerotactics - 24.03.2014, 08:09
Re: OnPlayerCommandText :( - by ChristianIvann09 - 24.03.2014, 08:19
Re: OnPlayerCommandText :( - by Aerotactics - 24.03.2014, 08:29
Re: OnPlayerCommandText :( - by ChristianIvann09 - 24.03.2014, 08:34
Re: OnPlayerCommandText :( - by Aerotactics - 24.03.2014, 08:39

Forum Jump:


Users browsing this thread: 1 Guest(s)