PDA

View Full Version : error 017: undefined symbol "Vehicle@YSII_Ag"


OfekEfron
17/08/2018, 08:07 PM
error 017: undefined symbol "Vehicle@YSII_Ag"
error 017: undefined symbol "Vehicle@YSII_Ag"

GetVehicleLinkedID(id)
{
foreach(new i: Vehicle)
{
if(VehicleInfo[i][vID] == id)
{
return i;
}
}

return INVALID_VEHICLE_ID;
}

what i need to do to fix it?

KinderClans
17/08/2018, 08:08 PM
You need y_iterate/foreach include.

OfekEfron
17/08/2018, 08:11 PM
You need y_iterate/foreach include.

#include <foreach>
isnt good?

KinderClans
17/08/2018, 08:12 PM
As i know, you need also y_iterate.

OfekEfron
17/08/2018, 08:13 PM
As i know, you need also y_iterate.

#include <y_iterate>
added this and its giving me the same error

KinderClans
17/08/2018, 08:15 PM
#include <YSI\y_iterate>

Download whole YSI include pack and put this ^

GaMiX
17/08/2018, 08:16 PM
you guys are very fast xd

OfekEfron
17/08/2018, 08:16 PM
#include <YSI\y_iterate>

Download whole YSI include pack and put this ^

still the same

Unkovic
17/08/2018, 09:09 PM
#include <YSI\y_iterate>

Download whole YSI include pack and put this ^

First, Open the y_iterate and foreach and see difference xD

Also, I THINK that you cant foreach vehicles as players.
If you create ServerVehicles Iterators you can do that.