01.08.2014, 09:36
Hi, My command /repair is getting a warning 202 message
Line causing the Warning
PS: I'm a Beginner.
pawn Код:
if (strcmp(cmdtext, "/repair", true) == 0 )
{
if (!IsPlayerInAnyVehicle(playerid) )
{
SendClientMessage(playerid, 0xFF0000AA, "You must be in a vehicle to repair it");
return 1;
}
else if (!IsPlayerInRangeOfPoint(5, 1607.2327, -1841.8683, 13.5116) )
{
SendClientMessage(playerid, 0xFF0000AA, "You are not at the Mechanic Place please get to there then /repair, use /whereismech to find the location");
return 1;
}
else
{
RepairVehicle(GetPlayerVehicleID(playerid));
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
GivePlayerMoney (playerid, -5000);
SendClientMessage(playerid, 0xFFC0C0C0, "You have repaired your vehicle and paid 5,000$ for it");
return 1;
}
}
pawn Код:
else if (!IsPlayerInRangeOfPoint(5, 1607.2327, -1841.8683, 13.5116) )