SAVING TOYS TO INI - 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)
+--- Thread: SAVING TOYS TO INI (
/showthread.php?tid=380332)
SAVING TOYS TO INI -
PaulDinam - 24.09.2012
How can i do like after the players hits the save button on the editor, or after he disconnects the toy x z y and all the other will be saved.
i have a system of DINI inside the mode
Re: SAVING TOYS TO INI -
TreePuncher - 25.09.2012
Do you use any enumerators? Could you give me or anyother guy the code you are using so we can fix it?
Re: SAVING TOYS TO INI -
PaulDinam - 25.09.2012
i can't give the whole mode
Re: SAVING TOYS TO INI -
coole210 - 25.09.2012
pawn Код:
#define MAX_TOYS 10
enum Toys {
ToyIndex, ToyModel, ToyBone, Float:ToyX, Float:ToyY, Float:ToyZ, Float:ToyRX, Float:ToyRY, Float:ToyRZ, Float:ToySX, Float:ToySY, Float:ToySZ
}
new pToy[MAX_PLAYERS][Toys][MAX_TOYS];
//Example Usage:
pToy[playerid][ToyIndex][0] = 1; // Toy "0" ToyIndex is now set to 1.
Hope you can figure it out past there.
If not, wiki!
https://sampwiki.blast.hk/wiki/Enums
Re: SAVING TOYS TO INI -
VenomMancer - 20.12.2013
Quote:
Originally Posted by coole210
pawn Код:
#define MAX_TOYS 10 enum Toys { ToyIndex, ToyModel, ToyBone, Float:ToyX, Float:ToyY, Float:ToyZ, Float:ToyRX, Float:ToyRY, Float:ToyRZ, Float:ToySX, Float:ToySY, Float:ToySZ } new pToy[MAX_PLAYERS][Toys][MAX_TOYS];
//Example Usage: pToy[playerid][ToyIndex][0] = 1; // Toy "0" ToyIndex is now set to 1.
Hope you can figure it out past there.
If not, wiki!
https://sampwiki.blast.hk/wiki/Enums
|
You can make this for me ?
First, please open this topic : Who can make it, save for all slot ?
because just slot 0 can save -_-.
Help me guys 
If helped, i will give you +Rep1!