AddVehicleComponent Error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: AddVehicleComponent Error (
/showthread.php?tid=538306)
AddVehicleComponent Error -
Tom1412 - 20.09.2014
Hello,
I was fixing errors on a gamemode and I got it down to this error but I can't work out what is causing it.
pawn Код:
gamemodes\RC-RP.pwn(6102) : error 001: expected token: ",", but found "["
gamemodes\RP.pwn(6102) : error 029: invalid expression, assumed zero
gamemodes\RP.pwn(6102) : warning 215: expression has no effect
gamemodes\RP.pwn(6102) : error 001: expected token: ";", but found "]"
gamemodes\RP.pwn(6102) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
if(vehicleid == PlayerInfo[i][pVVeh])
{
if(PlayerInfo[i][vVLocked]) SetVehicleParamsEx(vehicleid, 0, 0, 0, 1, 0, 0, 0);
ChangeVehiclePaintjob(PlayerInfo[i][pVVeh], PlayerInfo[i][vVPJ]);
for(new x=0; x<14; i++)
{
AddVehicleComponent(PlayerInfo[i][pVVeh], PlayerInfo[i][pVVehMod][x]);
}
}
Re: AddVehicleComponent Error -
Eth - 20.09.2014
pawn Код:
AddVehicleComponent(PlayerInfo[i][pVVeh], PlayerInfo[i][pVVehMod]);
try it.
Re: AddVehicleComponent Error -
Threshold - 21.09.2014
Show your enum for PlayerInfo.
Assuming the error is on the line above (which has not been given to us...), then you have probably used 'sizeof' or something in your enum for PlayerInfo.