Loading password in y_ini - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Loading password in y_ini (
/showthread.php?tid=278871)
Loading password in y_ini -
Wesley221 - 24.08.2011
Hey guys,
Im trying to store the playerpassword in a variable, but i dont really get it how to do that. I tried INI_String(); before, but that gave me the error "Undefined symbol". Zhero(not sure if thats the right name) said this can also be done by using INI_ParseFile();, but i dont really get how to use that.
Zhero also gave me a link to his FS which uses the INI_ParseFile(); aswell, but couldnt really get it how he used it.
Can anyone give me an hand how to get the player password using INI_ParseFile();?
Im using the variable PlayerInfo[playerid][pPass] to store the password in, if you wanna know that.
~Wesley
Re: Loading password in y_ini -
Wesley221 - 24.08.2011
I did put the size after the enums.
pawn Code:
enum P_INFO {
pName[24],
pPass[MAXPSIZE], // MAXPSIZE == 16
}
INI_String("Name", PlayerInfo[playerid][pName]);
INI_String("Password", PlayerInfo[playerid][pPass]);
error 017: undefined symbol "INI_String"
error 017: undefined symbol "INI_String"
Re: Loading password in y_ini -
Wesley221 - 24.08.2011
Thanks!
That did work