How to add vehicles from Grand Larceny to my gamemode?
#1

I tried to do as I saw on a SA-MP tutotrial,but it didn't work,the tutorial said to do this:

#include "../include/gl_common.inc"
new total_vehicles_from_files=0;

pubilc OnGameModeInit
{
// SPECIAL
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/pilots.txt");

// LAS VENTURAS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_gen.txt");

// SAN FIERRO
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_gen.txt");

// LOS SANTOS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");

// OTHER AREAS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");

printf("Total vehicles from files: %d",total_vehicles_from_files);
return 1;
}
Much more,someone replied the tutorial with: "Thanks,it worked".A friend of mine told me to do the same,but it's not working.It gives me error 029 and warning 215
Reply
#2

Anyone help please?
Reply
#3

Views 14 > replyes 0 ...
Reply
#4

Copy the function LoadStaticVehiclesFromFile to your gm and do the same thing
and copy al dyrectories to your server files


STOP BUMPING PLEASE!
Reply
#5

What do you mean copying the LoadStaticVehiclesFromFiles function u mean :

new LoadStaticVehiclesFromFile=1
and wich are the other directories?
Reply
#6

BTW,if someone could copy-paste what to do it would be nice.BTW,this is the topic where it says what to do,but I don't really understand what to do(at elast I'm chill knowing that other peoples also have problems on this):
https://sampforum.blast.hk/showthread.php?tid=106286
Reply
#7

cmon i really need help with this please post the entire code of how to do it.
Reply
#8

this seems very hard to be done(please help)
Reply
#9

ok I am really sorry for spamming the forum with this topic,but I really don't know what to do,only that IS POSSIBLE so please help
Reply
#10

OK,I know this is not allowed and is called BUMPING,but please peoples,there are evn harder scripts to solve than this one,SO PLEASE TELL ME WHAT TO DO
Reply
#11

WHAT IS WORNG IS THIS HARDER THAN SCRIPTING GODROLEPLAY IN 60 SECONDS OR WHAT?(sorry peopels for being so MAD BUT REALLY NOW IT'S RIDICOLOUS
BUMP!!!
Reply
#12

BUMP!!!

SORRY WAITING FOR ANSWERS SINCE LAST WEEK
Reply
#13

https://sampforum.blast.hk/showthread.php?tid=253202
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)