Vehicles respawning BLACK. - 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: Vehicles respawning BLACK. (
/showthread.php?tid=364007)
Vehicles respawning BLACK. -
Kyle - 29.07.2012
Hi, when I use my respawn command all the copcar vehicles respawn black even though the default colour is black and white.
Here is a video:
[ame]http://www.youtube.com/watch?v=FVMxpj56c9M[/ame]
I get this error using MP2's synced vehicle colours, could this be the issue. Note: I use OnVehicleSpawn in my gamemode.
pawn Код:
Run time error 5: "Invalid memory access"
AMX backtrace:
#0 0001fd54 in vfunc_ChangeVehicleColor (vehicleid=406, color1=-1, color2=-1) at C:\Users\Kyle\Desktop\Scripting\pawno\include\a_carcolour.inc:365
#1 00020214 in public S@@_OnVehicleSpawn (vehicleid=406) at C:\Users\Kyle\Desktop\Scripting\pawno\include\a_carcolour.inc:435
#2 native SetVehicleToRespawn () [0046f760] from samp-server.exe
#3 00153ca8 in dcmd_respawnvehicles (playerid=4, params[]=@0x0031e74c "") at C:\Users\Kyle\Desktop\Scripting\gamemodes\CNRV3.0.pwn:18945
#4 0010c3c8 in public S@@_OnPlayerCommandText (playerid=4, cmdtext[]=@0x00387e20 "") at C:\Users\Kyle\Desktop\Scripting\gamemodes\CNRV3.0.pwn:13746
Run time error 5: "Invalid memory access"
AMX backtrace:
#0 0001fd54 in vfunc_ChangeVehicleColor (vehicleid=407, color1=-1, color2=-1) at C:\Users\Kyle\Desktop\Scripting\pawno\include\a_carcolour.inc:365
#1 00020214 in public S@@_OnVehicleSpawn (vehicleid=407) at C:\Users\Kyle\Desktop\Scripting\pawno\include\a_carcolour.inc:435
#2 native SetVehicleToRespawn () [0046f760] from samp-server.exe
#3 00153ca8 in dcmd_respawnvehicles (playerid=4, params[]=@0x0031e74c "") at C:\Users\Kyle\Desktop\Scripting\gamemodes\CNRV3.0.pwn:18945
#4 0010c3c8 in public S@@_OnPlayerCommandText (playerid=4, cmdtext[]=@0x00387e20 "") at C:\Users\Kyle\Desktop\Scripting\gamemodes\CNRV3.0.pwn:13746
Re: Vehicles respawning BLACK. -
Devilxz97 - 29.07.2012
try remove that vehicle colour , and test if it's not going to respawn as black .
if it's still not works , there's is a problem with your script
Re: Vehicles respawning BLACK. -
Kyle - 29.07.2012
The line is this
return CallLocalFunction("vfunc_OnVehicleSpawn", "i", vehicleid); // Hooking method
But because I already use public OnVehicleSpawn(vehicleid) in my gamemode could this effect it
Re: Vehicles respawning BLACK. -
Kar - 29.07.2012
https://sampforum.blast.hk/showthread.php?tid=235398