SA-MP Forums Archive
Y_INI [ help ] - 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: Y_INI [ help ] (/showthread.php?tid=327216)



Y_INI [ help ] - RicaNiel - 20.03.2012

Guys how would i read a string in Y_INI?

for example i have this

Код:
password = fanrapyt
how would i read that as string?

i cant Use INI_String because always Unknown


Re: Y_INI [ help ] - RicaNiel - 20.03.2012

guys anyone?


Re: Y_INI [ help ] - Twisted_Insane - 20.03.2012

The hell, stop bumping, not even 30 minutes passed!


Re: Y_INI [ help ] - antonio112 - 20.03.2012

How come you can't use INI_String? That's what that is for:

pawn Код:
INI_String("Password", string, size);

// in your case, something like:

new pass[64];
INI_String("Password", pass, 64);
printf("%s", pass);
That surely must work... What error you get with INI_String? Unknown what ?