SA-MP Forums Archive
Help for returning a value/string with single function on Y_ini. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help for returning a value/string with single function on Y_ini. (/showthread.php?tid=528045)



Help for returning a value/string with single function on Y_ini. - Segura - 25.07.2014

Can someone tell and explain me if is there any way to get a value/string from a file with single function like dini_Get() on Y_ini?

I want to use that function at here, dini_int to that function.

pawn Код:
if(strfind(PlayerName(playerid), "[Dr]",false) != -1) {
    if(!fexist(file) || dini_Int(file,"Member") == 0) {
       format(string,128,">> %s (%d) has been kicked from server. Reason: Fake Clan Member.",PlayerName(playerid),playerid);
       SendClientMessageToAll(COLOR_RED, string);
       SendClientMessage(playerid, COLOR_RED, "You have been kicked from server for using our clan although you're not a member of it.");
       SetTimerEx("kick_player",500,false,"d",playerid);
       return 0;
    }
}



Re: Help for returning a value/string with single function on Y_ini. - Segura - 26.07.2014

dump


Re: Help for returning a value/string with single function on Y_ini. - codectile - 26.07.2014

Use INI_Int for integer data types and INI_String for String datatypes.