26 errors.
#1

Код:
if(strcmp(cmd, "/megaphone", true) == 0 || strcmp(cmd, "/m", true) == 0)
{
new tmpcar = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/m)egaphone [megaphone chat]");
return 1;
}
if (gTeam[playerid] != 2 || 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "You are not a police officer or medic!");
return 1;
}
if(!IsACopCar(tmpcar) || !IsAnAmbulance(tmpcar))
{
SendClientMessage(playerid, COLOR_GRAD2, " you are not in a service vehicle");
return 1;
}
if (gTeam[playerid] != 2)
{
format(string, sizeof(string), "[Officer %s:o< %s]", sendername, result);
ProxDetector(60.0,playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
if (gTeam[playerid] != 1)
{
format(string, sizeof(string), "[Paramedic %s:o< %s]", sendername, result);
ProxDetector(60.0,playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
its somwhere where in there.
Reply


Messages In This Thread
26 errors. - by iLcke - 30.03.2010, 01:42
Re: 26 errors. - by cessil - 30.03.2010, 01:46
Re: 26 errors. - by Whitetiger - 30.03.2010, 01:58
Re: 26 errors. - by iLcke - 30.03.2010, 02:02
Re: 26 errors. - by Whitetiger - 30.03.2010, 02:03
Re: 26 errors. - by iLcke - 30.03.2010, 02:09
Re: 26 errors. - by CuervO - 30.03.2010, 05:37
Re: 26 errors. - by iLcke - 31.03.2010, 01:51
Re: 26 errors. - by iLcke - 05.04.2010, 06:48
Re: 26 errors. - by scott1 - 05.04.2010, 08:02

Forum Jump:


Users browsing this thread: 1 Guest(s)