SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/07/2019, 03:37 AM   #1
S3DOx
Little Clucker
 
Join Date: Apr 2018
Posts: 35
Reputation: 0
Default scripts error problems

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 (c) 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 }
S3DOx is offline   Reply With Quote
Old 14/07/2019, 05:36 AM   #2
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 1,951
Reputation: 500
Default Re: scripts error problems

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
SyS is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Scripts . Error NameTags Player !! nguyendinhdat Scripting Help 11 01/02/2018 01:45 PM
How to write scripts. Scripts and furniture oppo1234 Scripting Help 2 18/04/2015 05:56 PM
scripts that create problems EleMenTalL Scripting Help 3 20/11/2011 09:38 AM
Making free DM scripts and other scripts Kyle. Help Archive 15 28/01/2011 01:24 AM
Help with Scripts (2 problems) FbF SAMP Help Archive 3 20/02/2010 03:34 AM


All times are GMT. The time now is 06:55 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.