PDA

View Full Version : scripts error problems


S3DOx
14/07/2019, 03:37 AM
hello all,

i have tryed to complile the script called old school roleplay the one posted in gamemode scripts

i got all the required files and put them where they need to be putted but when i try to compile it give me the following errors :

C:\Users\Abdou\Desktop\samp\gamemodes\os-rp.pwn(8151) : error 017: undefined symbol "Vehicle@YSII_Ag"
C:\Users\Abdou\Desktop\samp\gamemodes\os-rp.pwn(8151) : error 017: undefined symbol "Vehicle@YSII_Ag"
C:\Users\Abdou\Desktop\samp\gamemodes\os-rp.pwn(8151) : error 029: invalid expression, assumed zero
C:\Users\Abdou\Desktop\samp\gamemodes\os-rp.pwn(8151) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.2.3664 Copyright (c) 1997-2016, ITB CompuPhase


4 Errors.


i checked the scrpt line 8151 and i found this :

8149 GetVehicleLinkedID(id)
8150 {
8151 foreach(new i: Vehicle)
8152 {
8153 if(VehicleInfo[i][vID] == id)
8154 {
8155 return i;
8156 }
8157 }
8158
8159 return INVALID_VEHICLE_ID;
8160 }

SyS
14/07/2019, 05:36 AM
You are using old version of y_iterate that does not have vehicle iterator, update it to solve the issue.

https://github.com/pawn-lang/YSI-Includes