Vehicles respawning BLACK.
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=235398
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)