scripts error problems - 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: scripts error problems (
/showthread.php?tid=667941)
scripts error problems -
S3DOx - 14.07.2019
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 :
Code:
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 © 1997-2016, ITB CompuPhase
4 Errors.
i checked the scrpt line 8151 and i found this :
Code:
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 }
Re: scripts error problems -
SyS - 14.07.2019
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