SA-MP Forums Archive
Y_Ini explanation? - 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 explanation? (/showthread.php?tid=304627)



Y_Ini explanation? - Hoborific - 19.12.2011

So I have been looking to convert several gamemodes to Y_ini, and so far it all seems pretty straight forward but the loading.. People create it in a function and call the function like so

pawn Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
But I don't understand the fucking line, I'd rather know what I am doing rather than just doing it.


Re: Y_Ini explanation? - Gazmull - 19.12.2011

https://sampforum.blast.hk/showthread.php?tid=175565


Re: Y_Ini explanation? - Steven82 - 19.12.2011

INI_ParseFile
filename[] - The file to load.
remoteFormat[] - What function to call.
bool:bFileFirst - What order to format the function.
bool:bExtra - Send additional data.
extra - Additional data to send.
bLocal - Call local functions instead of gloabal ones.
bool:bPassTag - What extra data to pass.


Copied straight from the Y_INI thread.


Re: Y_Ini explanation? - Hoborific - 19.12.2011

Quote:
Originally Posted by Gazmull
Посмотреть сообщение
But I don't understand the whole %s text replacement of the function name, He doesn't explain it in his thread (Or not well enough that I understand it)

and you're sure as hell not helping by referring me to his thread.


edit: Thanks Steven but I don't understand WHAT they do, like the bExtra, what additional? what extra...