Vehicle .txt
#1

i wanted to add vehicles using text files

i wrote these

#include vehicles/bone.txt

under ongamemodeint but i get a error saying cant read the file can someone help
Reply
#2

Can someone help please
Reply
#3

Can you show us your OnGameModeInit code?
Reply
#4

The include function doesn't work like that!
It needs to be out of all callbacks, on top of the whole script!
Reply
#5

It doesn't even work like that because those files just contain coordinates and not actual statements. You need a function to load them. I think the Grand Larceny mode contains a function to load them. Although sscanf might be a better option all the way.
Reply
#6

Quote:

public OnGameModeInit()
{
#include vehicles/car.txt
SetGameModeText("iFreeRoam");
AddPlayerClass(0, 1683.0627, -2244.2290, 13.5427, 179.8361, 0, 0, 0, 0, 0, 0);
UsePlayerPedAnims();
return 1;
}

thats my gamemodeint i dont understand it should work
Reply
#7

Put "#include <vehicles/car.txt>" under "#include <a_samp>"
PS: Sorry if I am late...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)