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: Help (
/showthread.php?tid=618837)
Help -
NealPeteros - 10.10.2016
Need help, please. Got this code from somewhere.
PHP код:
PlayerInfo[playerid][pLearn] = DOF2_GetInt(string,"LP","General");
I want to do the same as well. To load the LP (Learning Points) of a player, but using YSI rather than DOF2. Can someone help me "convert" it to YSI?
Re: Help -
NealPeteros - 10.10.2016
Is there a way to convert it?
Re: Help -
ChristolisTV - 10.10.2016
Hello! Maybe this link will help you:
https://sampwiki.blast.hk/wiki/YSI:INI
Re: Help -
NealPeteros - 10.10.2016
There's no function that gets a player's pLearn data. Like GetPlayerHealth or GetPlayerScore. Thanks anyways!
Re: Help -
ChristolisTV - 10.10.2016
Maybe you should check out this then:
https://sampforum.blast.hk/showthread.php?tid=570957
Hope this helps!
Re: Help -
NealPeteros - 10.10.2016
Still can't find one
Re: Help -
NealPeteros - 10.10.2016
Shall we add a public or a stock to create a new function like GetPlayerPoints?
Re: Help -
NealPeteros - 11.10.2016
I 'kinda got it already. I just need understanding on this
Quote:
Load a single tag for a single player:
Код:
forward LoadOneUser_LVDM(playerid, name[], value[]);
public LoadOneUser_LVDM(playerid, name[], value[])
{
}
Код:
INI_ParseFile(playerfile, "LoadOneUser_%s", false, true, playerid);
|
Source:
[Include]y_ini
I think this is what I'm looking for.
Source