26.01.2012, 16:38
(
Last edited by niels44; 07/04/2012 at 05:17 PM.
)
hey guys,
i have just made this small simple include which makes it easier to add a car somewhere in your GM/FS.
what does it do:
as first i have defined every carid into carnames so now when u do AddStaticVehicle or PutPlayerInVehicle or any other option then you dont have to enter the id of the car you want there but you can just simply add the car name there and it will recognise it as the id which is defined in the include.
How to install and use it:
as first download cardefines.inc.
then place it in your folder Pawno/include/cardefines.inc
then go to your GM/FS and open it.
add on top of the script under #include <a_samp> #include <cardefines>.
so it will look like this:
ok well then compile your script and it will probably give no errors.(if it does then post here wut your error is)
and have fun with the include
DOWNLOAD:
Solidfiles:
http://solidfiles.com/d/90a1362d8f/download/
Mediafire:
http://205.196.122.130/tlu21kui47eg/...cardefines.inc
Pastebin:
http://pastebin.com/1C07ta3E
have fun
greets niels
EDIT:
on some suggestions of players i made a version 2 of this, so now it will remove errors/warnings in truck scripts or other scripts
as first i explain how it works in this version:
in the previous version you had to do for example: Addstaticvehicle(bus,........................);
but ****** and Toreno said that would cause problems so i recreated this with their suggestions( i only didnt made it with BIGG letters cuz then i had to rewrite it completely XD this already took me 1 hour so if you really want it in bigg letters then you may do it yourself XD
ok so nowyou have to do it like this:
addstaticvehicle(v_bus,........................);
that v_ means for EVERY vehicle so you have to put v_ before every vehicle, so for v_bus, v_cheetah, v_infernus, etc....
also i made it in the define with ( and )
you dont have to type that in your script, they only said it would be faster or something XD, so i added it to the ids of the car, it doesnt affects the names just type v_bus,
so for example in the include:
#define v_bus (431)
download it from here:
Solidfiles:
http://www.solidfiles.com/d/add494dab7/
pastebin:
http://pastebin.com/5rykQ4Za
also i recommend the ones who already had the other one and didnt had errors to not use this one, cuz then it maybe can cause errors, but you may always try
greets niels
i have just made this small simple include which makes it easier to add a car somewhere in your GM/FS.
what does it do:
as first i have defined every carid into carnames so now when u do AddStaticVehicle or PutPlayerInVehicle or any other option then you dont have to enter the id of the car you want there but you can just simply add the car name there and it will recognise it as the id which is defined in the include.
How to install and use it:
as first download cardefines.inc.
then place it in your folder Pawno/include/cardefines.inc
then go to your GM/FS and open it.
add on top of the script under #include <a_samp> #include <cardefines>.
so it will look like this:
pawn Code:
#include <a_samp>
#include <cardefines>
and have fun with the include
DOWNLOAD:
Solidfiles:
http://solidfiles.com/d/90a1362d8f/download/
Mediafire:
http://205.196.122.130/tlu21kui47eg/...cardefines.inc
Pastebin:
http://pastebin.com/1C07ta3E
have fun
greets niels
EDIT:
on some suggestions of players i made a version 2 of this, so now it will remove errors/warnings in truck scripts or other scripts
as first i explain how it works in this version:
in the previous version you had to do for example: Addstaticvehicle(bus,........................);
but ****** and Toreno said that would cause problems so i recreated this with their suggestions( i only didnt made it with BIGG letters cuz then i had to rewrite it completely XD this already took me 1 hour so if you really want it in bigg letters then you may do it yourself XD
ok so nowyou have to do it like this:
addstaticvehicle(v_bus,........................);
that v_ means for EVERY vehicle so you have to put v_ before every vehicle, so for v_bus, v_cheetah, v_infernus, etc....
also i made it in the define with ( and )
you dont have to type that in your script, they only said it would be faster or something XD, so i added it to the ids of the car, it doesnt affects the names just type v_bus,
so for example in the include:
#define v_bus (431)
download it from here:
Solidfiles:
http://www.solidfiles.com/d/add494dab7/
pastebin:
http://pastebin.com/5rykQ4Za
also i recommend the ones who already had the other one and didnt had errors to not use this one, cuz then it maybe can cause errors, but you may always try
greets niels