Empty Statement?
#5

try this!

PHP код:
CMD:buyhouse(playerid,params[])
{
    new 
hid GetHouseID(playerid);
    new 
price HouseInfo[hid][HPrice];
    if(
GetPlayerMoney(playerid) < price) return SendFM(playeridCOLOR_WHITE"COL_RED"SERVER"COL_WHITE":You can't buy this house it is too expensive for you! House Price %d",price);
    if(HouseInfo[hid][HOwned] == 1) return SendClientMessage(playerid,-1,"COLOR_RED"SERVER"COL_WHITE"You can'
t buy this house because it is already bought!");
    if(HouseInfo[hid][HOwnerID] == pinfo[playerid][ID]) return SendClientMessage(playerid, -1, "
COL_RED"You can't buy your own house!");    
    
HouseBuy(playerid);
    return 
Reply


Messages In This Thread
Empty Statement? - by vassilis - 26.11.2015, 12:53
Re: Empty Statement? - by N0FeaR - 26.11.2015, 12:56
Re: Empty Statement? - by vassilis - 26.11.2015, 12:58
Re: Empty Statement? - by ATGOggy - 26.11.2015, 12:58
Re: Empty Statement? - by N0FeaR - 26.11.2015, 13:02
Re: Empty Statement? - by thefirestate - 26.11.2015, 13:07
Re: Empty Statement? - by ATGOggy - 26.11.2015, 13:08
Re: Empty Statement? - by ATGOggy - 26.11.2015, 13:12
Re: Empty Statement? - by N0FeaR - 26.11.2015, 13:14
Re: Empty Statement? - by ATGOggy - 26.11.2015, 13:15

Forum Jump:


Users browsing this thread: 3 Guest(s)