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.
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;
}
if(PlayerInfo[playerid][pHouseCarX] != 0 && PlayerInfo[playerid][pHouseCarY] != 0)
{
LoadHouseCars(playerid);
}
|
Originally Posted by Onyx09
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.
Код:
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;
}
|
if(PlayerInfo[playerid][pHouseCarX] != 0 && PlayerInfo[playerid][pHouseCarY] != 0)
{
LoadHouseCars(playerid);
}
|
Originally Posted by Onyx09
This is the 2 Error Lines
Код:
if(PlayerInfo[playerid][pHouseCarX] != 0 && PlayerInfo[playerid][pHouseCarY] != 0)
{
LoadHouseCars(playerid);
}
|
|
enum pInfo { pKey[128], pLevel, pAdmin, pDonateRank, gPupgrade, pConnectTime, pReg, pSex, pAge, pOrigin, pCK, pMuted, pExp, pCash, pAccount, Here comes more!!!!! pHouseCarY pHouseCarX }; new PlayerInfo[MAX_PLAYERS][pInfo]; |
|
Originally Posted by Onyx09
yes i allready added that part and the problem still shows
|