03.01.2017, 22:37
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(strlen(dini_Get("Admin/logs/aka.txt", tmp3)) == 0)
dini_Set("Admin/logs/aka.txt", tmp3, PlayerName);
else
{
if( strfind( dini_Get("Admin/logs/aka.txt", tmp3), PlayerName, true) == -1 )
{
format(string,sizeof(string),"%s,%s", dini_Get("Admin/logs/aka.txt",tmp3), PlayerName);
dini_Set("Admin/logs/aka.txt", tmp3, string);
}
}
return 1;
}
{
if(strlen(dini_Get("Admin/logs/aka.txt", tmp3)) == 0)
dini_Set("Admin/logs/aka.txt", tmp3, PlayerName);
else
{
if( strfind( dini_Get("Admin/logs/aka.txt", tmp3), PlayerName, true) == -1 )
{
format(string,sizeof(string),"%s,%s", dini_Get("Admin/logs/aka.txt",tmp3), PlayerName);
dini_Set("Admin/logs/aka.txt", tmp3, string);
}
}
return 1;
}