Problem BanReason DINI
#6

Quote:
Originally Posted by KamilPolska
Посмотреть сообщение
Okay. It works. CMD:ban works well with BanReason. Only there is a problem. Player will register and the PlayerName.ini file is created.
Ban=0
BanReason=None
As a player leaves the server /q
This is so:
Ban=0
BanReason=
Removed "None". How to repair?
PHP код:
SaveAccounts(playerid)
{
    new 
name[MAX_PLAYER_NAME], file[256];
    
GetPlayerName(playeridnamesizeof(name));
    
format(filesizeof(file), SERVER_USER_FILEname);
    if(
dini_Exists(file))
    {
          
dini_Set(file"BanReason""None");
    }
}
LoadAccounts(playerid)
{
    new 
name[MAX_PLAYER_NAME], file[256];
    
GetPlayerName(playeridnamesizeof(name));
    
format(filesizeof(file), SERVER_USER_FILEname);
    if(
dini_Exists(file))
    {
        
PlayerInfo[playerid][pBanReason] = dini_Get(file"BanReason");
    }

Reply


Messages In This Thread
Problem BanReason DINI - by KamilPolska - 15.04.2018, 11:46
Re: Problem BanReason DINI - by Mencent - 15.04.2018, 12:25
Re: Problem BanReason DINI - by KamilPolska - 15.04.2018, 13:47
Re: Problem BanReason DINI - by ProScripter - 15.04.2018, 15:34
Re: Problem BanReason DINI - by KamilPolska - 15.04.2018, 15:50
Re: Problem BanReason DINI - by ProScripter - 15.04.2018, 16:26
Re: Problem BanReason DINI - by KamilPolska - 15.04.2018, 17:30
Re: Problem BanReason DINI - by fiki574 - 15.04.2018, 17:41
Re: Problem BanReason DINI - by KamilPolska - 15.04.2018, 19:10
Re: Problem BanReason DINI - by MadeMan - 15.04.2018, 19:16

Forum Jump:


Users browsing this thread: 1 Guest(s)