COMMAND:radio(playerid, params[])
#1

Trying to make a radio chat inside teams. There is something im doing wrong and i dont know what lol
What i can understand, this code will send the message to all players in the server, and not just only to the team when use (SendClientMessageToAll) ?


It looks like this
pawn Код:
468COMMAND:radio(playerid, params[])
469{
470   GetPlayerName(playerid,pname,sizeof(pname));
471   if(Leader[playerid] == 3)
472   {
473       format(String,MAX_PLAYERS, "** Command Chief Master  %s: %s, over **",pname);
474       SendClientMessageToAll(0x8F8F8FFF,String);
475       return 1;
476   }
477       else if Member[playerid] == 3)
478   {
479        format(String,MAX_PLAYERS, "** Member  %s: %s, over **",pname);
480        SendClientMessageToAll(0x8F8F8FFF,String);
481        return 1;
482    }
483     return 1;
484}
Errors/Warnings
pawn Код:
(477) : error 001: expected token: "*then", but found ")"
(477) : error 029: invalid expression, assumed zero
(483) : warning 225: unreachable code
(483) : warning 217: loose indentation
Reply


Messages In This Thread
COMMAND:radio(playerid, params[]) - by cruising - 04.04.2011, 21:43
Re: COMMAND:radio(playerid, params[]) - by SchurmanCQC - 04.04.2011, 21:55
Re: COMMAND:radio(playerid, params[]) - by cruising - 04.04.2011, 22:10
Re: COMMAND:radio(playerid, params[]) - by SchurmanCQC - 04.04.2011, 22:11
Re: COMMAND:radio(playerid, params[]) - by cruising - 04.04.2011, 22:15
Re: COMMAND:radio(playerid, params[]) - by Donya - 04.04.2011, 22:38
Re: COMMAND:radio(playerid, params[]) - by cruising - 04.04.2011, 22:53
Re: COMMAND:radio(playerid, params[]) - by Donya - 05.04.2011, 02:17
Re: COMMAND:radio(playerid, params[]) - by cruising - 05.04.2011, 02:31

Forum Jump:


Users browsing this thread: 2 Guest(s)