Server crash
#1

If a player tries to connect my server his/her server crash. This happens when 3 or more player is present on my server. Please help. People is angry at me
Reply
#2

plz help someone
Reply
#3

Check your OnPlayerUpdate callback for file saving etc.. things like that shouldnt be under the OnPlayerUpdate callback
Reply
#4

Do you mean their game is crashing? Or do you mean their literal servers that they are home hosting?

This forum requires that you wait 120 seconds between posts. Please try again in 50 seconds.
Reply
#5

This is my on player connect
public OnPlayerConnect(playerid)
{

new string[128];
new string2[128];
new plname[MAX_PLAYER_NAME];
new playersip[64];
new zone[MAX_ZONE_NAME];
new bancheck[24];
new msg2[128];
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
GetPlayerName(playerid, plname, sizeof(plname));
GetPlayerIp(playerid,playersip,sizeof(playersip));
new namestring = strfind(plname, "_", true);
format(string, sizeof(string),"%s",playersip);
gPlayerUsingLoopingAnim[playerid] = 0;
gPlayerAnimLibsPreloaded[playerid] = 0;

format(bancheck, sizeof(bancheck),"LARP/Users/%s.ini",plname);

if(dini_Exists(bancheck))
{
PlayerInfo[playerid][pBanned] = dini_Int(bancheck,"Banned");
if(PlayerInfo[playerid][pBanned] == 1)
{
SendClientMessage(playerid, COLOR_NICERED,"This Name is Banned from the Server and was never unbanned.");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"* If you want to play must post an unban request at our Forums.");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You can visit our website at <changeme>."); // add your website
SendClientMessage(playerid, COLOR_NICERED,"Ban Evading may get you banned permanentely!!");

format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been Banned for Possible Ban Evading",plname,playerid);
SendAdminMessage(COLOR_LIGHTRED,msg2);
format(msg2,sizeof(msg2),"[ADMIN]: IP %s has been added to the ban list by Anticheat Peter Griffin",playersip);
SendAdminMessage(COLOR_WHITE,msg2);

format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been banned by the anticheat for Possible Ban Evading",d,m,y,h,mi,s,plname);
BanLog(msg2);
BanEx(playerid, "Ban Evading");
}
}

if(AntiName == 1)
{
if(namestring == -1)
{
format(string, sizeof(string),"%s, Has been kicked by the Anticheat Peter Griffin for Having an Unvalid Name",plname);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(playerid, COLOR_YELLOW2, "Immigration Department: Your name is not acceptable.");
SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Your name must be in the format Firstname_Lastname.");
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for Invalid Name",d,m,y,h,mi,s,plname);
KickLog(string);
Kick(playerid);
return 1;
}


@Grim_ Their server is crashing
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)