C:\Users\infogenie\Desktop\Addictive Trainers 2.5.4\gamemodes\own.pwn(1451) : error 036: empty statement
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1775.4211,2080.3914,10.8203)); SetPlayerColor(playerid, COLOR_TOMATO); GivePlayerWeapon(playerid,42,5000); GivePlayerWeapon(playerid,6,1); SetPlayerSkin(playerid, 277); SetPlayerCheckpoint(playerid,2536.6230, 2072.3806, 10.3258, 12.0); SetPlayerCheckpoint(playerid,2589.0271, 2184.6870, 10.3301, 12.0); SetPlayerCheckpoint(playerid,2488.7024, 2398.3101, 10.3374, 12.0); SetPlayerCheckpoint(playerid,2536.0857, 2259.4763, 10.3379, 12.0); SendClientMessage(playerid, COLOR_TOMATO,"Fire Fighters Team called! There are much fires in the city! Go to the checkpoints and shut them"); return 1; }
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1775.4211,2080.3914,10.8203));
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1775.4211,2080.3914,10.8203))
{
error 030: compound statement not closed at the end of file (started at line 1451)
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1775.4211,2080.3914,10.8203));
{
SetPlayerColor(playerid, COLOR_TOMATO);
GivePlayerWeapon(playerid,42,5000);
GivePlayerWeapon(playerid,6,1);
SetPlayerSkin(playerid, 277);
SetPlayerCheckpoint(playerid,2536.6230, 2072.3806, 10.3258, 12.0);
SetPlayerCheckpoint(playerid,2589.0271, 2184.6870, 10.3301, 12.0);
SetPlayerCheckpoint(playerid,2488.7024, 2398.3101, 10.3374, 12.0);
SetPlayerCheckpoint(playerid,2536.0857, 2259.4763, 10.3379, 12.0);
SendClientMessage(playerid, COLOR_TOMATO,"Fire Fighters Team called! There are much fires in the city! Go to the checkpoints and shut them");
return 1;
}
warning 209: function "cmd_onduty" should return a value
now look i have this warning
Код:
warning 209: function "cmd_onduty" should return a value |