22.04.2017, 17:42
й o seguinte, criei uma log pra pegar o nome, ip, ping de cada pessoa que conecta, mas quando alguem conecta o server crasha, nгo sei pq, codigo: (cada vez que alguem entra, o server fecha e cria um arquivo chamado crashinfo)
crashinfo: https://pastebin.com/sKKUEGAd
ajuda pls
PHP код:
new logent[128], time[6], data[128], infoplayer[256], nomeplayer[MAX_PLAYER_NAME], ipplayer[16], pingplayer;
gettime(time[0], time[1], time[2]);
getdate(time[3], time[4], time[5]);
GetPlayerName(playerid, nomeplayer, sizeof(nomeplayer));
GetPlayerIp(playerid, ipplayer, sizeof(ipplayer));
pingplayer = GetPlayerPing(playerid);
format(logent, sizeof(logent), "Entrada/Entradas.ini");
format(data, sizeof(data), "[%02d/%02d/%d][%02d:%02d:%02d]:",time[5], time[4], time[3], time[0], time[1], time[2]);
format(infoplayer, sizeof(infoplayer), "%s Nick: %s, IP: %d, Ping: %d\n", data, nomeplayer, ipplayer, pingplayer);
if(DOF2_FileExists(logent))
{
DOF2_SetString(logent, "Entrada", infoplayer);
}else{
DOF2_CreateFile(logent);
DOF2_SetString(logent, "Entrada", infoplayer);
ajuda pls