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



Strange problem - KinderClans - 05.08.2018

Ok, i have a strange problem.

I directly spawn the player when he logins, everything works ... BUT!

It doesn't work if i load vehicles!

pawn Код:
LoadStaticVehiclesFromFile("vehicles/bone.txt");
    LoadStaticVehiclesFromFile("vehicles/flint.txt");
    LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
    LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
    LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");

Etc etc.
If i add this code on OnGameModeInit, after the player has logged, he gets redirected to class selection, instead of directly spawning.

If i remove this code, everything works.

What's wrong? Dark magic?


Re: Strange problem - KinderClans - 06.08.2018

Bump.


Re: Strange problem - KinderClans - 08.08.2018

Bump.


Re: Strange problem - Florin48 - 08.08.2018

check what the function LoadStaticVehiclesFromFile he do