error 017: undefined symbol "Vehicle@YSII_Ag"
#1

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

You need y_iterate/foreach include.
Reply
#3

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
You need y_iterate/foreach include.
#include <foreach>
isnt good?
Reply
#4

As i know, you need also y_iterate.
Reply
#5

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
As i know, you need also y_iterate.
#include <y_iterate>
added this and its giving me the same error
Reply
#6

#include <YSI\y_iterate>

Download whole YSI include pack and put this ^
Reply
#7

you guys are very fast xd
Reply
#8

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
#include <YSI\y_iterate>

Download whole YSI include pack and put this ^
still the same
Reply
#9

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
#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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)