Loading password in y_ini
#1

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
Reply
#2

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"
Reply
#3

Thanks!
That did work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)