if (strcmp("/Medicduty", cmdtext, true, 10) == 0)
{
{
if(GetPlayerTeam(playerid) == TEAM_ME)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,-15.3097,-157.6416,1018.7024))
SetPlayerSkin(playerid,274);
}
else
{
SendClientMessage(playerid,0xE00404,"You are not in the medic loker room");
}
}
else
{
SendClientMessage(playerid,0xE00404,"You are not a medic");
}
}
else
{
SendClientMessage(playerid,0xE00404,"You are not a medic");
}
: error 029: invalid expression, assumed zero
if (strcmp("/Medicduty", cmdtext, true, 10) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid,5.0,-15.3097,-157.6416,1018.7024)) return SendClientMessage(playerid,0xE00404,"You are not in the medic loker room");
if(GetPlayerTeam(playerid) == TEAM_ME)
{
SetPlayerSkin(playerid,274);
}
else return SendClientMessage(playerid,0xE00404,"You are not a medic");
return 1;
}
Yea, obviously.
pawn Код:
|