Function for save anything
#1

Hello community.

I would like to know the function that make is saved to a file a certain thing:

For example, when you register in a server and asks for age and then save as "pAge = 20" in a ini file for the user.

Other example on the GodFather GM:

UserName.ini:
Код:
Key=
Level=
AdminLevel=
UpgradePoints=
ConnectedTime=
Registered=
Sex=
Age=
Thanks!
Reply
#2

If you are really going to start with saving data, might I recommend going it in MySQL? SA:MP is that far ahead already and it takes up less space than an ini file.

If you absolutely want to work with files, I guess the best option to go for is ******' Y_INI. There is no one-size-fits-all when it comes to this, so the methods will be different in every plugin. Best to learn with examples from the topic of the plugin.
Reply
#3

I can use both options. Although I am new on pawn and if they have any tutorial would be much better if you do not mind. I want to do it alone but with a tutorial to learn xD.

Thanks mamorunl!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)