PDA

View Full Version : Help


BlackEvils
18/02/2016, 11:39 PM
public OnGameModeInit()
{
//Privatecars
PrivateVehicleBlackEvilS = CreateVehicle(411, 112.1450, -89.6118, 4.5540, 0.0000000, -1, -1, -1);
PrivateVehicleOhad = CreateVehicle(425, 112.1450, -113.5158, 4.5540, 0.0000000, -1, -1, -1);
return 1;
}

evey times i add this 2 lines for create 2 vehicles and i try enter on server after spawn i always get crash i have already compiled my gamemode and have 0 errors and 0 warns how i can resove this problem?

saffierr
19/02/2016, 01:40 AM
Use AddStaticVehicle maybe?

BlackEvils
19/02/2016, 02:20 AM
Use AddStaticVehicle maybe?

it always give me this problem for this i used createvehicle

BiosMarcel
19/02/2016, 09:17 AM
Some mods maya cause your game to crash, is one of the vehicles a vehicle that u have moded, because it is your client that is crashing and not your server right?

BlackEvils
21/02/2016, 06:15 PM
i use
PrivateVehicleBlackEvilS = AddStaticVehicle(411, 112.1450, -89.6118, 4.5540, 0.0000000, 0, 1);
PrivateVehicleOhad = AddStaticVehicle(425, 112.1450, -113.5158, 4.5540, 0.0000000, 0, 1);

But always crash and i don't have any mod on vehicles when i remove this 2 lines server work perfectly but when i put this 2 lines at every spawn after login i get crash

BlackEvils
21/02/2016, 10:20 PM
Plss someone help me

itsCody
22/02/2016, 04:00 AM
Where are you using this?
Also, are your vars "new PrivateVehicleBlackEvilS;", etc and nothing else?