SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 14/09/2009, 10:46 AM   #1
boelie
Gangsta
 
boelie's Avatar
 
Join Date: Apr 2009
Location: San Fierro
Posts: 647
Reputation: 1
Default making your script to upload files wich include vehicles, objects etc.

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
__________________
boelie is offline  
Old 14/09/2009, 04:12 PM   #2
Gamer_Z
Guest
 
Posts: n/a
Default Re: making your script to upload files wich include vehicles, objects etc.

you can't just copy/paste.. you need to edit it right.
 
Old 15/09/2009, 09:26 AM   #3
boelie
Gangsta
 
boelie's Avatar
 
Join Date: Apr 2009
Location: San Fierro
Posts: 647
Reputation: 1
Default Re: making your script to upload files wich include vehicles, objects etc.

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.
__________________
boelie is offline  
Old 15/09/2009, 09:39 AM   #4
Abernethy
Gangsta
 
Join Date: May 2009
Posts: 898
Reputation: -1
Default Re: making your script to upload files wich include vehicles, objects etc.

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?
Abernethy is offline  
Old 15/09/2009, 09:50 AM   #5
boelie
Gangsta
 
boelie's Avatar
 
Join Date: Apr 2009
Location: San Fierro
Posts: 647
Reputation: 1
Default Re: making your script to upload files wich include vehicles, objects etc.

yes or a txt document that the script gets directly from the scriptfiles folder
__________________
boelie is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[DUV] Files Include SuB_ZeRo0_ PortuguÍs/Portuguese 0 16/04/2010 05:53 PM
My GameMode won't recognize include files. Scenario Help Archive 0 05/03/2010 01:54 PM
Anti Team kill wich script ? Gijs Help Archive 3 17/08/2009 09:22 AM
Making a Filter Script with objects in. IceColdBaby0o Help Archive 6 27/07/2009 11:52 AM
Making objects, deleting created objects KnooL Help Archive 1 15/02/2009 08:34 AM


All times are GMT. The time now is 09:51 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.