21.07.2013, 04:29
I managed to fix errors, yes there's another missing bracket then i add it,
Updated code:
4 errors left
The errors came from this
5167: }
5168: if(gTeam[i] == Medic)
}
if(gTeam[i] == Medic)
{
Updated code:
Quote:
if(strcmp("/mm", cmdtext, true, 3) == 0) { new string[128]; if(IsSpawned[playerid] == 0) { SendClientMessage(playerid, COLOR_ERROR, "You are dead. You cannot use this command"); return 1; } if(gTeam[playerid] == Medic) { SendClientMessage(playerid,COLOR_ROYALBLUE,"You are not a Medic!"); } if(strlen(cmdtext) <= 4) { SendClientMessage(playerid,COLOR_ERROR,"USAGE: /mm [Medic Message]"); return 1; } else { new output[255]; new pname[24]; GetPlayerName(playerid, pname, 24); strmid(output,cmdtext,3,strlen(cmdtext)); format(string, sizeof(string), "[MEDIC RADIO] - %s (%d): %s",pname,playerid,output); printf("%s", string); for(new i=0;i<MAX_PLAYERS;i++) } if(gTeam[i] == Medic) { format(string, sizeof(string), "[MEDIC RADIO] - %s (%d): %s",pname,playerid,output); SendClientMessage(i,COLOR_ROYALBLUE,string); } } return 1; } |
Quote:
C:\Users\USER\Desktop\SERVERSKCNR\gamemodes\CNR.pw n(5167) : error 029: invalid expression, assumed zero C:\Users\USER\Desktop\SERVERSKCNR\gamemodes\CNR.pw n(5167 -- 516 ![]() C:\Users\USER\Desktop\SERVERSKCNR\gamemodes\CNR.pw n(516 ![]() C:\Users\USER\Desktop\SERVERSKCNR\gamemodes\CNR.pw n(516 ![]() C:\Users\USER\Desktop\SERVERSKCNR\gamemodes\CNR.pw n(516 ![]() Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
5167: }
5168: if(gTeam[i] == Medic)
}
if(gTeam[i] == Medic)
{