12.07.2011, 10:31
Whats wrong with this? It breaks my register system
pawn Код:
if(!strcmp(cmdtext, "/e ", true, 3))
{
if (gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_WSPD || gTeam[playerid] == TEAM_FBI || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_FIREMAN)
{
if(!strlen(cmdtext[3]))
{
SendClientMessage(playerid,COLOR_GREY, "USAGE: /e [text]");
return 1;
}
GetPlayerName(playerid,player,sizeof(player));
format(string,sizeof(string),"*Radio %s(%i):%s, over",player,playerid,cmdtext[2]);
SendCopMessage(COLOR_BLUE, string);
return 1;
}