Problems with elses and ifs
#5

Код:
CMD:enterhouse(playerid, params[]) { 
        if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xE30000FF, "[ERROR] You must be on foot to enter the house!");
        if(IsPlayerInRangeOfPoint(playerid, 45, 2007.29663, 1226.52783, 10.66455)) 
        { 
        SetPlayerPos(playerid, 2049.0613, 941.1595, -2.0587); 
        } else {
        SendClientMessage(playerid, 0xE30000FF, "[ERROR] You are not near the house door!"); 
        } 
        return 1; 
}
Reply


Messages In This Thread
Problems with elses and ifs - by Bek_Loking - 09.03.2017, 20:02
Re: Problems with elses and ifs - by Vince - 09.03.2017, 20:30
Re: Problems with elses and ifs - by Bek_Loking - 09.03.2017, 20:33
Re: Problems with elses and ifs - by Bek_Loking - 09.03.2017, 20:56
Re: Problems with elses and ifs - by ISmokezU - 09.03.2017, 21:02
Re: Problems with elses and ifs - by Bek_Loking - 09.03.2017, 21:12

Forum Jump:


Users browsing this thread: 2 Guest(s)