GarHouse Errors Help to fix (+REP)
#1

hi all i keep getting errorswith GarHouse 2.0 here are the errors

Код:
C:\Users\Joe\Desktop\new samp\filterscripts\GarHouse.pwn(118) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Joe\Desktop\new samp\filterscripts\GarHouse.pwn(446) : error 017: undefined symbol "YSI_gHousesS"
C:\Users\Joe\Desktop\new samp\filterscripts\GarHouse.pwn(446) : error 017: undefined symbol "YSI_gHousesA"
C:\Users\Joe\Desktop\new samp\filterscripts\GarHouse.pwn(446) : warning 215: expression has no effect
C:\Users\Joe\Desktop\new samp\filterscripts\GarHouse.pwn(446) : error 001: expected token: ";", but found "]"
C:\Users\Joe\Desktop\new samp\filterscripts\GarHouse.pwn(446) : fatal error 107: too many error messages on one line
and here is the fs code were i get the errors

Код:
new Iterator:Houses<MAX_HOUSES>, Text3D:HouseLabel[MAX_HOUSES], Float:X, Float:Y, Float:Z, Float:Angle;

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == PLAYER_STATE_DRIVER)
	{
		foreach(Houses, h)
		{
	    	if(GetPlayerVehicleID(playerid) == HCar[h])
	    	{
	    	    switch(strcmp(hInfo[h][HouseOwner], pNick(playerid), CASE_SENSETIVE))
	    	    {
	    	        case 0: ShowInfoBox(playerid, I_HOUSECAR_OWNER, pNick(playerid), h);
	    	        case 1:
	    	        {
	    	            GetPlayerPos(playerid, X, Y, Z);
	    	            SetPlayerPos(playerid, (X + 3), Y, Z);
                  		ShowInfoBox(playerid, E_NOT_HOUSECAR_OWNER, h, hInfo[h][HouseOwner]);
	    	        }
	    	    }
	    	    break;
	    	}
	    }
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)