SAVING TOYS TO INI
#1

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
Reply
#2

Do you use any enumerators? Could you give me or anyother guy the code you are using so we can fix it?
Reply
#3

i can't give the whole mode
Reply
#4

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
Reply
#5

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)