By default the name is always "core" I think, hence overwriting old core dumps
Thanks, I was worried it maybe error I had before.
maxdamage99
I make my ban system, Whiskas check for all queryS if(isDefined..
sometime player disconnect and cod2 make query for null login and server crash by error: Segmentation Fault
Thanks.
PHP Code:
SearchForBan()
{
myIP = self getIP();
if(!isDefined(myIP))
return;
printf("SELECT `ip`, `name`, `reason`, `whobanned` FROM `bans` WHERE `ip` = \"%\" LIMIT 1", myIP);
maps\mp\gametypes\_mysql::asyncQuery("SELECT `ip`, `name`, `reason`, `whobanned` FROM `bans` WHERE `ip` = \"" + myIP + "\" LIMIT 1", ::checkBan);
printf("SELECT `ip`, `name`, `reason`, `whobanned` FROM `bans` WHERE `ip` = \"%\" LIMIT 1", myIP);
}
I'm not sure your query is actually defined, if myip is undefined, the whole server might crash.
Didn't know that 'myIP' can sometimes be undefined. :O
P.S: dont use async query, my server is lag (VDS BY OPENVZ), i change OPEVNZ on KVM, and without async server normal job (no lag, uptime > 20 days), async - server no lag, but sometime server crash!
I would like to stay with async query. It is superior to me. If there will be no async I think that I wouldn't add mysql at all, but thanks for your tip.
Thanks for every reply guys. You're amazing. Hope my server's uptime will be increased.