Tags for files in y_ini
#1

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

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

I hope you understand.
Reply
#3

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

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

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?
Reply
#6

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[])
Reply
#7

Yeah, big thanks for you mate!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)