SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 29/01/2018, 02:27 PM   #1
Saddin
Huge Clucker
 
Saddin's Avatar
 
Join Date: Mar 2011
Posts: 372
Reputation: 35
Default Vehicles respawning with black color

Some of my vehicle that I respawn ingame change color to black.

I made test script that checks color of each vehicle and prints it in log, and I got this:

PHP Code:
[16:18:26vehicleidc1c2452525
[16:18:26vehicleidc1c2462525
[16:18:26vehicleidc1c2472525
[16:18:26vehicleidc1c2482525
[16:18:26vehicleidc1c2492525
[16:18:26vehicleidc1c2502525
[16:18:26vehicleidc1c2512525
[16:18:26vehicleidc1c2522525
[16:18:26vehicleidc1c2532525
[16:18:26vehicleidc1c2542525
[16:18:26vehicleidc1c2338475
[16:18:26vehicleidc1c2339475
[16:18:26vehicleidc1c2340475
[16:18:26vehicleidc1c2341475
[16:18:26vehicleidc1c2342475
[16:18:26vehicleidc1c2343475
[16:18:26vehicleidc1c2344475
[16:18:26vehicleidc1c2345475
[16:18:26vehicleidc1c25561, -1
[16:18:26vehicleidc1c25571, -
The colors are same as they should be but all vehicles are black...
Saddin is offline   Reply With Quote
Old 29/01/2018, 02:35 PM   #2
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,193
Reputation: 420
Default Re: Vehicles respawning with black color

maybe you got a ChangeVehicleColors somewhere?
__________________
Quote:
Originally Posted by Andy
My anti cheat is still relevant *puts shades on* https://github.com/RogueDrifter/Anti_cheat_pack

[Github]:Link [Gists]:Link [Forum]:Link [Server]:Link [Discord]:Link

RogueDrifter is offline   Reply With Quote
Old 29/01/2018, 03:09 PM   #3
Flamehaze7
Big Clucker
 
Flamehaze7's Avatar
 
Join Date: Feb 2016
Posts: 132
Reputation: 10
Default Re: Vehicles respawning with black color

If the vehicle is black there may be an error with COLOR IDs somewhere in your script, like RogueDrifter said maybe somewhere you got overlapping code
Flamehaze7 is offline   Reply With Quote
Old 29/01/2018, 04:08 PM   #4
Mugala
High-roller
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,177
Reputation: 73
Default Re: Vehicles respawning with black color

if you're seeing it as a black vehicle and script reads it as an normal colored vehicle, than its client sided problem, probably caused by modding.
Mugala is offline   Reply With Quote
Old 29/01/2018, 07:27 PM   #5
Saddin
Huge Clucker
 
Saddin's Avatar
 
Join Date: Mar 2011
Posts: 372
Reputation: 35
Default Re: Vehicles respawning with black color

Quote:
Originally Posted by Mugalito View Post
if you're seeing it as a black vehicle and script reads it as an normal colored vehicle, than its client sided problem, probably caused by modding.
nothing is modded, client log reads correct color of vehicle but i'm seeing all vehicles in black color

btw. im recoloring when it spawns so again its black color..
Saddin is offline   Reply With Quote
Old 29/01/2018, 07:51 PM   #6
Mugala
High-roller
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,177
Reputation: 73
Default Re: Vehicles respawning with black color

are you sure u're not using ChangeVehicleColor in other scripts?
__________________
Coding in 8 languages including Pawn, C#, C++ and SQL.
Available for hiring.

If you have a coding question or need an assistance in a code, just PM me.
If you want me to create something for you, here is a Discord Mugala#5651

Currently helping Community members in a coding.
Mugala 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
Vehicles not respawning MP2 Scripting Help 5 08/04/2015 10:58 AM
Respawning vehicles rakshith122 Scripting Help 7 14/02/2014 04:33 PM
Help with respawning a particular set of vehicles. DanishHaq Scripting Help 3 08/08/2013 08:24 PM
Vehicles respawning BLACK. Kyle Scripting Help 3 29/07/2012 04:59 PM
VEhicles respawning Pawel2k9 Help Archive 3 08/03/2010 01:58 PM


All times are GMT. The time now is 10:11 AM.


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