SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=601250)



Help - BlackEvils - 18.02.2016

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?


Re: Help - saffierr - 19.02.2016

Use AddStaticVehicle maybe?


Re: Help - BlackEvils - 19.02.2016

Quote:
Originally Posted by saffierr
Посмотреть сообщение
Use AddStaticVehicle maybe?
it always give me this problem for this i used createvehicle


Re: Help - BiosMarcel - 19.02.2016

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?


Re: Help - BlackEvils - 21.02.2016

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


Re: Help - BlackEvils - 21.02.2016

Plss someone help me


Re: Help - itsCody - 22.02.2016

Where are you using this?
Also, are your vars "new PrivateVehicleBlackEvilS;", etc and nothing else?