29.07.2010, 11:53
I tried to fix it, its now this:
Stock:
And the Command itself:
ERROR:
Stock:
Код:
stock SendPoliceMessage(COLOR, string[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && GetPlayerTeam(i) == 1) { SendClientMessage(i, COLOR_LIGHTBLUE, string); } } return 0; }
Код:
if((strcmp(cmd, "/r", true) == 0) || (strcmp(cmd, "/radio", true) == 0)) { if(GetPlayerTeam(playerid) == 1) { format(string, sizeof(string), "* Radio: %s: %s", pName, string); SendPoliceMessage(COLOR_LIGHTBLUE, string); } return 1; }
Quote:
C:\Documents and Settings\Wouter\Bureaublad\SA-MP Scripting\pawno\PoliceFaction.pwn(293) : warning 203: symbol is never used: "COLOR" |