Aliases bug
BrasilianZ opened this issue · 0 comments
BrasilianZ commented
Every time the GetPlayerInfo
function is called, the server drops as soon as someone logs in to the server and logs in. I could not get Debug because I'm not in my computer now but in the end . I am using 1759.
GetPlayerInfo(name[])
{
new
info[512],
dayslived,
pass[129],
ipv4,
ip[17],
country[32],
alive,
regdate,
lastlog,
spawntime,
totalspawns,
warnings,
hash[41],
active;
GetAccountData(name, pass, ipv4, alive, regdate, lastlog, spawntime, totalspawns, warnings, hash, active);
ip = IpIntToStr(ipv4);
GetIPCountry(ip, country);
dayslived = (gettime() > spawntime) ? (0) : ((gettime() - spawntime) / 86400);
format(info, sizeof(info), "\
IP:\t\t\t%s\n\
Cidade:\t\t%s\n\
Vivo:\t\t\t%s\n\
Registrado:\t\t%s\n\
Último login em:\t\t%s\n\
Dias vivos:\t%d\n\
Lives Lived:\t\t%d\n\
Avisos:\t\t%d",
ip,
country,
alive ? ("Sim") : ("Não"),
TimestampToDateTime(regdate),
TimestampToDateTime(lastlog),
dayslived,
totalspawns,
warnings);
return name;
}