[Help]2 Errors Must Be Simple For Experts
#1

Well guys im a beginer and ive tried all i know and i cant fix this erors i know is probly dumb but im still learning can someone tell me how to fix it please

Error im getting
Код:
C:\Users\Noxiouz\Desktop\szr.pwn(9164) : error 010: invalid function or declaration
C:\Users\Noxiouz\Desktop\szr.pwn(9167) : error 054: unmatched closing brace ("}")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Code Im Usin
Код:
		if(PlayerInfo[playerid][pHouseCarX] != 0 && PlayerInfo[playerid][pHouseCarY] != 0)
		{
			LoadHouseCars(playerid);
		}

public LoadHouseCars(playerid)
{
	new Float:Carx = PlayerInfo[playerid][pHouseCarX];
	new Float:Cary = PlayerInfo[playerid][pHouseCarY];
	new Float:Carz = PlayerInfo[playerid][pHouseCarZ];
	new Float:Carangle = PlayerInfo[playerid][pHouseCarAngle];
	new CarId = PlayerInfo[playerid][pHouseCarId];
	
	if(PlayerInfo[playerid][pHouseCarColorChosen] == 0) // Random color
	{
	new randcolor = 1 + random(125);
	playercarid[playerid] = CreateVehicle(CarId,Carx,Cary,Carz,Carangle,randcolor,randcolor,10000);
	}
	
	else if(PlayerInfo[playerid][pHouseCarColorChosen] == 1) // bought colors
	{
	new color1 = PlayerInfo[playerid][pHouseCarColor1];
	new color2 = PlayerInfo[playerid][pHouseCarColor2];
	playercarid[playerid] = CreateVehicle(CarId,Carx,Cary,Carz,Carangle,color1,color2,10000);
	}
	
 	for (new i=0; i<MAX_POINTS; i++)
	{
	  new cartolock = playercarid[playerid];
	  SetVehicleParamsForPlayer(cartolock,i,0,0);
	  PlayerInfo[playerid][pHouseCarLocked] = 0; // unlocked
	}
	return 1;
}
can Some one please help me ? Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)