Created
June 12, 2015 14:38
-
-
Save dennorske/f71508a21987407699b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//here is the paste from my log, first occurrence in the i could find, appears randomly from /carmenu | |
[15:07:36] SpawnPlayerVehicle: Old spawned car ID = 470 BY Playerid = 6 (Destroyed) | |
[15:07:36] SpawnPlayerVehicle: New spawned car ID = 255 BY Playerid = 6 (Created) | |
[15:07:36] IT WAS Vehicle ID 255, was sent to hell (World 255) | |
[15:07:36] SpawnPlayerVehicle: New spawned car ID = 456 BY Playerid = 6 (Created) | |
//code: | |
stock SpawnPlayerVehicle(playerid, vehicleid, Float:x,Float:y,Float:z,Float:angle, color1313,color2323, respawn = -1,putinvehicle) | |
{ | |
#pragma unused respawn | |
if(IsValidVehicle(AccInfo[playerid][SpawnedCarID])) | |
{ | |
printf("SpawnPlayerVehicle: Old spawned car ID = %d BY Playerid = %d (Destroyed)",AccInfo[playerid][SpawnedCarID],playerid); | |
DestroyVehicle(AccInfo[playerid][SpawnedCarID]); | |
AccInfo[playerid][SpawnedCarID] = -1; | |
} | |
AccInfo[playerid][SpawnedCarID] = CreateVehicle(vehicleid, x,y,z, angle, color1313, color2323, 240); | |
printf("SpawnPlayerVehicle: New spawned car ID = %d BY Playerid = %d (Created)",AccInfo[playerid][SpawnedCarID],playerid); | |
if(AccInfo[playerid][SpawnedCarID] == 255) | |
{ | |
print("IT WAS Vehicle ID 255, was sent to hell (World 255)"); | |
SetVehicleVirtualWorld(255, 255); | |
AccInfo[playerid][SpawnedCarID] = CreateVehicle(vehicleid, x,y,z, angle, color1313, color2323, 240); | |
printf("SpawnPlayerVehicle: New spawned car ID = %d BY Playerid = %d (Created)",AccInfo[playerid][SpawnedCarID],playerid); | |
if(!IsPlayerInRace[playerid]) | |
putinvehicle = 0; | |
} | |
if(AccInfo[playerid][SpawnedCarID] == 255) | |
{ | |
print("IT WAS Vehicle ID 255, was sent to hell AGAIN (World 255)\nFATAL ERROR VEHICLE 255 !!!!"); | |
SetVehicleVirtualWorld(255, 255); | |
return scm(playerid, red, "An Error Occured. Please contact one of the scripters! (Vehicle 255)"); | |
} | |
SetVehicleVirtualWorld(AccInfo[playerid][SpawnedCarID], GetPlayerVirtualWorld(playerid)); | |
LinkVehicleToInterior(AccInfo[playerid][SpawnedCarID], GetPlayerInterior(playerid)); | |
if(putinvehicle == 1) | |
{ | |
PutPlayerInVehicle(playerid, AccInfo[playerid][SpawnedCarID], 0); | |
} | |
return 1; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment