SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 13/05/2014, 01:26 PM   #1
KillerStrike23
Huge Clucker
 
Join Date: Apr 2014
Location: Am In Heaven but you can contact me
Posts: 285
Reputation: 1
Default Save Neon Components

@hello, I want to know how to save neon components when playerdis is that possible like when player use cmd:neon it save the neons, and am using satdm so don't worry.
__________________
66.225.195.163:7780
Am trying to be creative 10 slots for a server testing is better than showing yourself for 100 slots .... if you are a girl and you are pro at being an administrator, If you have the privilege contact me and you'll get the chance. singed by StreetFighter
KillerStrike23 is offline   Reply With Quote
Old 13/05/2014, 01:34 PM   #2
Madd92
Big Clucker
 
Join Date: Apr 2013
Location: Germany
Posts: 61
Reputation: 1
Default Re: Save Neon Components

Do you want to save the component for a certain player or vehicle id?
Either way if you just want to save it during runtime, use an array in your script and if you want it to be saved after a server restart, save it to a table (e.g. of the vehicles) in your database.

I hope this helps.
Madd92 is offline   Reply With Quote
Old 13/05/2014, 01:43 PM   #3
Baboon
Banned
 
Join Date: Nov 2010
Location: The Netherlands
Posts: 918
Reputation: 348
Default Re: Save Neon Components

Quote:
Originally Posted by Madd92 View Post
Do you want to save the component for a certain player or vehicle id?
Either way if you just want to save it during runtime, use an array in your script and if you want it to be saved after a server restart, save it to a table (e.g. of the vehicles) in your database.

I hope this helps.
I don't think he understands this.

Start learning how to work with mysql/y_ini.
Learn how to work with objects.
Baboon is offline   Reply With Quote
Old 13/05/2014, 01:53 PM   #4
KillerStrike23
Huge Clucker
 
Join Date: Apr 2014
Location: Am In Heaven but you can contact me
Posts: 285
Reputation: 1
Default Re: Save Neon Components

lol I don't use MySQL! SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon10") this is my code so ?
__________________
66.225.195.163:7780
Am trying to be creative 10 slots for a server testing is better than showing yourself for 100 slots .... if you are a girl and you are pro at being an administrator, If you have the privilege contact me and you'll get the chance. singed by StreetFighter
KillerStrike23 is offline   Reply With Quote
Old 13/05/2014, 02:01 PM   #5
Madd92
Big Clucker
 
Join Date: Apr 2013
Location: Germany
Posts: 61
Reputation: 1
Default Re: Save Neon Components

Quote:
Originally Posted by Strawhats View Post
I don't think he understands this.

Start learning how to work with mysql/y_ini.
Learn how to work with objects.
If you want to save data for longer than the runtime of the server, do the above...
There is no other way
Madd92 is offline   Reply With Quote
Old 14/05/2014, 12:15 PM   #6
KillerStrike23
Huge Clucker
 
Join Date: Apr 2014
Location: Am In Heaven but you can contact me
Posts: 285
Reputation: 1
Default Re: Save Neon Components

bump I need the code of saving an object onplayerdisconnect or whatever ..
__________________
66.225.195.163:7780
Am trying to be creative 10 slots for a server testing is better than showing yourself for 100 slots .... if you are a girl and you are pro at being an administrator, If you have the privilege contact me and you'll get the chance. singed by StreetFighter
KillerStrike23 is offline   Reply With Quote
Old 14/05/2014, 04:12 PM   #7
Madd92
Big Clucker
 
Join Date: Apr 2013
Location: Germany
Posts: 61
Reputation: 1
Default Re: Save Neon Components

If you don't know how to use either d_ini, y_ini or MySQL then learn it. There are enough tutorials around here. Us posting code and you using it really won't help you at all.
Madd92 is offline   Reply With Quote
Old 14/05/2014, 06:24 PM   #8
KillerStrike23
Huge Clucker
 
Join Date: Apr 2014
Location: Am In Heaven but you can contact me
Posts: 285
Reputation: 1
Default Re: Save Neon Components

lol. I want to learn from codes that's the way which tought me how to script faty,
__________________
66.225.195.163:7780
Am trying to be creative 10 slots for a server testing is better than showing yourself for 100 slots .... if you are a girl and you are pro at being an administrator, If you have the privilege contact me and you'll get the chance. singed by StreetFighter
KillerStrike23 is offline   Reply With Quote
Old 16/05/2014, 05:36 PM   #9
KillerStrike23
Huge Clucker
 
Join Date: Apr 2014
Location: Am In Heaven but you can contact me
Posts: 285
Reputation: 1
Default Re: Save Neon Components

bump I need the code to save it with ids.
__________________
66.225.195.163:7780
Am trying to be creative 10 slots for a server testing is better than showing yourself for 100 slots .... if you are a girl and you are pro at being an administrator, If you have the privilege contact me and you'll get the chance. singed by StreetFighter
KillerStrike23 is offline   Reply With Quote
Old 20/05/2014, 12:05 AM   #10
Madd92
Big Clucker
 
Join Date: Apr 2013
Location: Germany
Posts: 61
Reputation: 1
Default AW: Re: Save Neon Components

Quote:
Originally Posted by KillerStrike23 View Post
lol. I want to learn from codes that's the way which tought me how to script faty,
Wonder why nobody wants to help...
Madd92 is offline   Reply With Quote
Reply

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
[FilterScript] Neon system + SAVE Misha_Konsta Filterscripts 25 21/11/2013 05:50 PM
Save Components Help [Rep ++] ScripteRMKD Scripting Help 1 19/02/2013 04:23 PM
Need help with components save! Please check it. LuckyPlaya` Scripting Help 4 20/01/2013 01:19 PM
How do I save Neon Lights on vehicles? aaronwelsh Scripting Help 2 02/01/2013 03:35 AM
[Include] BNeons - Set your wanted vehicle neon by just 1 line! Simple Neon Include [MWR]Blood Includes 6 23/08/2011 11:50 AM


All times are GMT. The time now is 01:56 PM.


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