SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 25/06/2017, 11:39 AM   #1
MRM
Big Clucker
 
MRM's Avatar
 
Join Date: Mar 2016
Location: Egypt
Posts: 140
Reputation: 0
Default Vehicleid bug

fixed

Last edited by MRM; 25/06/2017 at 09:30 PM.
MRM is offline   Reply With Quote
Old 25/06/2017, 11:43 AM   #2
OneDay
Huge Clucker
 
Join Date: Sep 2015
Posts: 294
Reputation: 139
Default Re: Vehicleid bug

Do you reset Player[playerid][pVehicle] when you destroy the vehicle?
OneDay is offline   Reply With Quote
Old 25/06/2017, 12:13 PM   #3
MRM
Big Clucker
 
MRM's Avatar
 
Join Date: Mar 2016
Location: Egypt
Posts: 140
Reputation: 0
Default Re: Vehicleid bug

fixed

Last edited by MRM; 25/06/2017 at 09:30 PM.
MRM is offline   Reply With Quote
Old 25/06/2017, 12:21 PM   #4
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,067
Reputation: 2660
Default Re: Vehicleid bug

This line
PHP Code:
vehicle INVALID_VEHICLE_ID
has no effect, unless you pass the variable by reference.
PHP Code:
stock DestroyVehicleNew(&vehicle
Notice the ampersand.
__________________
Vince 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
(vehicleid) [+REP] [SU]Spartan Scripting Help 2 14/02/2016 07:28 AM
/v ([vehicleid]) kalanerik99 Scripting Help 6 22/01/2015 03:16 PM
Workaround vehicleid not matching MySQL vehicleid DrDoom151 Scripting Help 2 18/05/2013 11:49 PM
VehicleID Grex Help Archive 4 16/09/2009 06:06 PM


All times are GMT. The time now is 05:02 PM.


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