What is wrong with this cmd?
#1

Hello, I am trying to make a buildhouse command, But I get alot of errors when trying to compile.

Код:
CMD:buildtent(playerid, params[])
{
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    for(new i = 0; i < MAX_HOUSES; i++) 
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.5, HouseInfo[i][hEnterX], HouseInfo[i][hEnterY], HouseInfo[i][hEnterZ]) && GetPlayerInterior(playerid) == HouseInfo[i][hOutsideInt] && GetPlayerVirtualWorld(playerid) == HouseInfo[i][hOutsideVir]) 
        {
            if(HouseInfo[i][hOwned]) return SendClientMessage(playerid, COLOR_RED, "");
            if(playerInfo[playerid][pCash] < 30) return SendClientMessage(playerid, "");
			{
				HouseInfo[i][hOwned] = true;
            	strmid(HouseInfo[i][hOwner], pName, 0, false, strlen(pName));
            	PlayerInfo[playerid][pCash] = -HouseInfo[i][hPrice]); 
            	SaveHouse(i);
            	LoadHouseVisual(i, true); 
            	return 1;
        	}
    	}
    	return 1;
	}
}
Compiles fine without it.

Anyone know whats wrong
Reply
#2

nvm, solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)