20.05.2017, 14:51
How do I read something inside a .ini file example:
Custom Function:
PHP код:
#define CLAN_TAG_MEMBERS "ClanMembers/%.ini"
PHP код:
public OnPlayerSpawn(playerid)
{
If(strfind(playername, "[Look]", true) != 0) // this will check if the player has [Look] infront of there name and inside the .ini file is 0 his not clan tag member it will kick the player
if(fexist(Folder(playerid)))
{
new INI:file = INI_Open(Folder(playerid));
// NOW HERE HOW DO I CHECK IF THE PLAYER Really has 0 in there ini file?
}
PHP код:
Folder(playerid)
{
New string[128], playername[MAX_PLAYER_NAME];
format(string, sizeof(string), CLAN_TAG_MEMBERS, playername);
return string;
}