y_ini Reading
#6

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
Reply


Messages In This Thread
y_ini Reading - by GiS - 08.01.2011, 18:54
Re: y_ini Reading - by Mаkaveli - 08.01.2011, 19:09
Re: y_ini Reading - by GiS - 08.01.2011, 19:31
Re: y_ini Reading - by Mаkaveli - 08.01.2011, 20:07
Re: y_ini Reading - by GiS - 08.01.2011, 20:15
Re: y_ini Reading - by Mаkaveli - 08.01.2011, 20:27
Re: y_ini Reading - by GiS - 09.01.2011, 08:46
Re: y_ini Reading - by Mаkaveli - 09.01.2011, 09:52
Re: y_ini Reading - by GiS - 09.01.2011, 10:56
Re: y_ini Reading - by [03]Garsino - 09.01.2011, 11:03

Forum Jump:


Users browsing this thread: 2 Guest(s)