SA-MP Forums Archive
Tags for files in y_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: Tags for files in y_ini (/showthread.php?tid=490408)



Tags for files in y_ini - Riwerry - 26.01.2014

Hello guys, how can I make public, which will load variables from .ini, but I want to load only one tag in this file, is that possible?
Example of the public: (This is public without tag)

pawn Код:
public LoadingUsers (playerid, name [], value [])
{
    INI_String ("Password", PlayerInformations [playerid] [pPassword], 129);
    //There I have other stuff...  
    return true;
}
How it should like when I want to load it from tag?
Thanks.


Re: Tags for files in y_ini - ProjectMan - 26.01.2014

I think it's best if you read this:
https://sampforum.blast.hk/showthread.php?tid=273088

I hope you understand.


Re: Tags for files in y_ini - Riwerry - 26.01.2014

I don't need registration, I just want to know how to make loading public, which will load only one tag from the file.


Re: Tags for files in y_ini - ProjectMan - 26.01.2014

Quote:
Originally Posted by Riwerry
Посмотреть сообщение
I don't need registration, I just want to know how to make loading public, which will load only one tag from the file.
Do read it, I specifically redirected you to the thread because it uses one tag. I will make an example code for you if you still don't understand after reading that thread.


Re: Tags for files in y_ini - Riwerry - 26.01.2014

Aww, sorry. So when I set tag like this:
pawn Код:
INI_SetTag(File,"data");
I will have to create public like this?:
pawn Код:
public LoadUser_data(playerid,name[],value[])
Am I right?


Re: Tags for files in y_ini - ProjectMan - 26.01.2014

Quote:
Originally Posted by Riwerry
Посмотреть сообщение
Aww, sorry. So when I set tag like this:
pawn Код:
INI_SetTag(File,"data");
I will have to create public like this?:
pawn Код:
public LoadUser_data(playerid,name[],value[])
Am I right?
Yes. after the _ goes your tag.

public LoadUser_data(playerid,name[],value[])


Re: Tags for files in y_ini - Riwerry - 26.01.2014

Yeah, big thanks for you mate!