making your script to upload files wich include vehicles, objects etc. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: making your script to upload files wich include vehicles, objects etc. (
/showthread.php?tid=97429)
making your script to upload files wich include vehicles, objects etc. -
boelie - 14.09.2009
Hello there,
In sa-mp 0.3 grandlarc gamemode script i saw lines like these;
Code:
new total_vehicles_from_files=0;
and in FS these
Code:
#define PROPERTY_FOLDER "properties" // Location of properties file
#define PROPERTY_UNIQID_FILE "properties/uniqId.txt" // Location of Uniq Interior Info
#define DB_PROPERTIES "properties/dbProperties.db" // Location of the properties Database
So i tried to add vehicles from a file using the total_vehicles line and it works perfectly.
Now i tried to do the same with objects streamed checkpoints and pickups wich i cant make it to work.
If its possible
Can someone please show me how that works ? i couldnt find a nice tutor or something .
Thanks for any help given
Re: making your script to upload files wich include vehicles, objects etc. -
Gamer_Z - 14.09.2009
you can't just copy/paste.. you need to edit it right.
Re: making your script to upload files wich include vehicles, objects etc. -
boelie - 15.09.2009
Quote:
|
Originally Posted by gamer_Z
you can't just copy/paste.. you need to edit it right.
|
I didnt
I edited it like with some logic but i just dont know i'm doing it right or if i'm missing something but i guess objects and pickups are possible to upload to.
Re: making your script to upload files wich include vehicles, objects etc. -
Abernethy - 15.09.2009
Are you referring to reading .cfg files that can be called when the gamemode starts so you don't have to put it all into the script itself?
Re: making your script to upload files wich include vehicles, objects etc. -
boelie - 15.09.2009
yes or a txt document that the script gets directly from the scriptfiles folder