08.01.2011, 20:27
INI_ParseFile(PlayerInfo[playerid][userfile], "ParsePlayerPass", false, true, playerid); //this calls function named ParsePlayerPass that we created(you can call it whatever you want) under to read whatever you want you can read other data too its makes y_ini faster to read data once not to exit and open again to read thats why PlayerInfo[playerid][pass] = value; is inside brackets { }
forward ParsePlayerPass(playerid, name[ ], value[ ]);
public ParsePlayerPass(playerid, name[ ], value[ ])
{
if (!strcmp(name, "Passwort" )) // this checks if your setted name exist
{
PlayerInfo[playerid][pass] = value; then we set in variable pass value that we get from file
}
}
sorry for bad english
forward ParsePlayerPass(playerid, name[ ], value[ ]);
public ParsePlayerPass(playerid, name[ ], value[ ])
{
if (!strcmp(name, "Passwort" )) // this checks if your setted name exist
{
PlayerInfo[playerid][pass] = value; then we set in variable pass value that we get from file
}
}
sorry for bad english