04.04.2011, 21:43
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
Errors/Warnings
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}
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