19.08.2011, 13:15
So I place this code under public OnGameModeInit
When I try to compile the script, I get these errors.
This is line 15772
Any help would be greatly appreciated.
Thanks in advanced.
pawn Код:
LoadCar();
new string2[64];
for(new h = 1; h < sizeof(CarInfo); h++)
{
format(string2, sizeof(string2), "Vehicles/%d.ini",h);
if(dini_Exists(string2))
{
ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
if(CarInfo[h][cPaintjob] != 999)
{
ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]);
}
SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]);
SetVehicleModifications(h);
}
}
Код:
C:\DOCUME~1\DISTUR~1\Desktop\PROJEC~1\GAMEMO~1\pgg.pwn(15490) : warning 235: public function lacks forward declaration (symbol "LoadCar") C:\DOCUME~1\DISTUR~1\Desktop\PROJEC~1\GAMEMO~1\pgg.pwn(15496) : error 001: expected token: ";", but found "if" C:\DOCUME~1\DISTUR~1\Desktop\PROJEC~1\GAMEMO~1\pgg.pwn(15772) : error 017: undefined symbol "ownedcar" C:\DOCUME~1\DISTUR~1\Desktop\PROJEC~1\GAMEMO~1\pgg.pwn(15772) : warning 215: expression has no effect C:\DOCUME~1\DISTUR~1\Desktop\PROJEC~1\GAMEMO~1\pgg.pwn(15772) : error 001: expected token: ";", but found "]" C:\DOCUME~1\DISTUR~1\Desktop\PROJEC~1\GAMEMO~1\pgg.pwn(15772) : error 029: invalid expression, assumed zero C:\DOCUME~1\DISTUR~1\Desktop\PROJEC~1\GAMEMO~1\pgg.pwn(15772) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
pawn Код:
ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
Thanks in advanced.