SA-MP Forums Archive
Y_ini help - 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: Y_ini help (/showthread.php?tid=631558)



Y_ini help - 1fret - 31.03.2017

How do i read a specific line with Y_ini , exampe for dini its
PHP код:
dini_Get(file"BannedBy")); 
..

I want to know what would it be for ini:

PHP код:
    if(pInfo[playerid][Banned] == 1)
    {
        new 
string[128];
        
SendClientMessage(playerid,red,"=====================================================");
        
SendClientMessage(playeridred"{FFFFFF}You are banned from this server.");
        
format(stringsizeof(string), " Banned By: {FFFFFF}%s"INI_Get(file"Bannedby"));// i want it to read this line
        
SendClientMessage(playerid,redstring);
        
format(stringsizeof(string), " Ban Reason: {FFFFFF}%s"INI_Get(file"Reason"));// and this line
        
SendClientMessage(playeridredstring);
        
SendClientMessage(playerid,red,"Make an Ban Appeal on our forums. An Administrator will review it as soon as possible.");
        
SendClientMessage(playerid,red,"=====================================================");
        
SendClientMessage(playerid,red"[AdmCmd]: This Account has been banned from the server.");
        
SetTimerEx("KickPlayer",200,false,"u"playerid);
        
format(astringsizeof(astring),"[AdmCmd]: %s has been automatically kicked | reason: Account Banned"GetName(playerid));
        
SendToAdmins(orange,astring);
        
format(astring,sizeof(astring),"[AdmCmd]: %s has been kicked | Reason: Account Banned",GetName(playerid));
        
WriteToLog(astring,"AccKickLog");
        return 
0;
    } 



Re: Y_ini help - [eLg]elite - 31.03.2017

You'd have to load the data to a variable using INI_Int, INI_FLoat, INI_String, etc... then use that variable.


Re: Y_ini help - 1fret - 31.03.2017

Quote:
Originally Posted by [eLg]elite
Посмотреть сообщение
You'd have to load the data to a variable using INI_Int, INI_FLoat, INI_String, etc... then use that variable.
Could you show me a example of what you are talking because i dont understand your explanation


Re: Y_ini help - 1fret - 01.04.2017

Bump


Re: Y_ini help - 1fret - 06.04.2017

bump


Re: Y_ini help - 1fret - 07.04.2017

bump