SA-MP Forums Archive
what's this ? - 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: what's this ? (/showthread.php?tid=550363)



what's this ? - _Application_ - 12.12.2014

INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);

this - .bExtra = true
and this - extra = playerid

Explain simply I do not understand English well


Re: what's this ? - Raweresh - 12.12.2014

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


Re: what's this ? - _Application_ - 12.12.2014

Quote:
Originally Posted by Raweresh
Посмотреть сообщение
I can not understand yet what these parameters


Re: what's this ? - Lordzy - 12.12.2014

From what I've read on the above link:

bExtra toggles the additional data or parameter to be sent with the function called using INI_ParseFile.
extra is that additional data's value.


Re: what's this ? - _Application_ - 12.12.2014

Quote:
Originally Posted by Lordzy
Посмотреть сообщение
From what I've read on the above link:

bExtra toggles the additional data or parameter to be sent with the function called using INI_ParseFile.
extra is that additional data's value.
What data, what data? I did not understand


Re: what's this ? - Lordzy - 12.12.2014

For example, assume that you've got a public function "LoadUserData" with parameters 'playerid'. So if you want that function to be parsed within INI_ParseFile function, you should note that extra argument data is being passed while parsing, ie : 'playerid'.

It's better to ask such questions related to that include on it's own topic, rather than creating a separate thread.