What's wrong? - 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: What's wrong? (
/showthread.php?tid=382846)
What's wrong? -
Yako - 05.10.2012
Hello, what's wrong in this code?
Код:
for(new i=0; i < sizeof(vInfo[vehicleid][Mods][]); i++)
{
AddVehicleComponent(vInfo[vehicleid][Id], vInfo[vehicleid][Mods][i]);
}
C:\Documents and Settings\Paulius\Desktop\naujas.pwn(429) : error 001: expected token: "]", but found "-identifier-"
C:\Documents and Settings\Paulius\Desktop\naujas.pwn(429) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Paulius\Desktop\naujas.pwn(429) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Paulius\Desktop\naujas.pwn(429) : fatal error 107: too many error messages on one line
Re: What's wrong? -
Danyal - 05.10.2012
pawn Код:
for(new i = 0; i < 15; i++)
{
AddVehicleComponent(vInfo[vehicleid][Id], vInfo[vehicleid][Mods][i]);
}
i used 15 becoz you can only attach 15mods at a time to vehicle...
try this...
Re: What's wrong? -
Yako - 05.10.2012
Thanks man, it's working