22.02.2019, 10:22
Hello i made something like ban.ini file where will after ban be typed player name i try with int then write 0 when i try writestring then only = . Here is a code
if(fexist(BAN()))
{
new INI:File = INI_Open(BAN());
INI_SetTag(File,"data");
PlayerInfo[playerid][IgracIme] = GetPlayerName(playerid,playername,sizeof(playernam e));
INI_WriteString(File,"Banovan:",PlayerInfo[playerid][IgracIme]);
INI_Close(File);
}
if(fexist(BAN()))
{
new INI:File = INI_Open(BAN());
INI_SetTag(File,"data");
PlayerInfo[playerid][IgracIme] = GetPlayerName(playerid,playername,sizeof(playernam e));
INI_WriteString(File,"Banovan:",PlayerInfo[playerid][IgracIme]);
INI_Close(File);
}