Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

How do i read something inside a file using Y_INi

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

PHP Code:

#define CLAN_TAG_MEMBERS "ClanMembers/%.ini" 

PHP Code:

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 Code:

Folder(playerid)
{
      New 
string[128], playername[MAX_PLAYER_NAME];
      
format(stringsizeof(string), CLAN_TAG_MEMBERSplayername);
      return 
string;



Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>