What's wrong?
#1

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
Reply
#2

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...
Reply
#3

Thanks man, it's working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)