How do i read something inside a file using Y_INi
#1

How do I read something inside a .ini file example:

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?

Custom Function:

PHP код:
Folder(playerid)
{
      New 
string[128], playername[MAX_PLAYER_NAME];
      
format(stringsizeof(string), CLAN_TAG_MEMBERSplayername);
      return 
string;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)