Y_ini help
#1

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;
    } 
Reply


Messages In This Thread
Y_ini help - by 1fret - 31.03.2017, 18:36
Re: Y_ini help - by [eLg]elite - 31.03.2017, 19:36
Re: Y_ini help - by 1fret - 31.03.2017, 19:40
Re: Y_ini help - by 1fret - 01.04.2017, 16:32
Re: Y_ini help - by 1fret - 06.04.2017, 00:32
Re: Y_ini help - by 1fret - 07.04.2017, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)