Crash people
#1

Hello please help me me server connect pepople and crash pepole please help

- RenisiL
Reply
#2

You will need to give more information related to your issue. You said it crashes them when they connect? Then maybe you should show your OnPlayerConnect-callback.
Reply
#3

Also, plz include the server_log.txt file, so we can check what happens...

The crash may be because of something in the server.cfg?
Reply
#4


OnPlayerConnect-callback.
Quote:

//************************************************** ****************************
public OnPlayerConnect(playerid)
{
//************************************************** ****************************
AntiSwearas = true;
ZaidejoSkaicius[playerid] = -1;
//************************************************** ****************************
new Vardas[MAX_PLAYER_NAME];
new string[258];
GetPlayerName(playerid, Vardas, sizeof(Vardas));
format(string, sizeof(string), "%s (ID: %d) Prisjunge prie serverio.",Vardas, playerid);
SendClientMessageToAll(COLOR_GELTONA, string);
//Textas
SendClientMessage(playerid, COLOR_GELTONAZALIA, "Sveiki atvyke i Ultra FreeRoam serveri");
SendClientMessage(playerid, COLOR_GELTONAZALIA, "Registruodamiesi nereikia raљyti jokiu /register ar /login tiesiog i lentele iraљikite slaptaћodi");
SendClientMessage(playerid, COLOR_GELTONAZALIA, "_______________________________________________") ;
SendClientMessage(playerid, COLOR_GELTONAZALIA, "Naujokas reikia pagalbos? rasyk /pagalba");
SendClientMessage(playerid, COLOR_GELTONAZALIA, "_______________________________________________") ;

new name[MAX_PLAYER_NAME], pFile[128], w[128];
GetPlayerName(playerid, name, sizeof(name));
format(pFile, sizeof(pFile), "users/%s.ini", name);
pInfo[playerid][Ispejimai] = dini_Int(pFile, "Ispejimai");
if(pInfo[playerid][Ispejimai] == 10)
{
SendClientMessage(playerid, COLOR_RAUDONA, "INFO: Tu turi 10 ispejimu ! (Kick)");
Kick(playerid);
}
if(!dini_Exists(pFile))
{
format(w,sizeof(w),"Praљome uћsiregistruoti, į lentele įraљykite slaptaћodi",name);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Re gistracijos meniu",w,"Registruotis","Atљaukti");
}
else
{
format(w,sizeof(w),"Praљome prisijungti, į lentele įraљykite slaptaћodi.",name);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Pr isijungimo meniu",w,"Prisijungti","Atљaukti");
}

TextDrawShowForPlayer(playerid, Textdraw0);
SetPlayerMapIcon( playerid, 4, 2646.1035,-2043.1030,13.6158, 27, 0); // Tune3
SetPlayerMapIcon( playerid, 8, 2327.7170,1387.7524,42.8203, 53, 0); // Drift
SetPlayerMapIcon( playerid, 9, -312.5532,1539.8326,75.5625, 53, 0); // Drift2
SetPlayerMapIcon( playerid, 15, -2459.4954,135.0187,35.1719, 52, 0); // bankas1
SetPlayerMapIcon( playerid, 16, -1697.0852,948.8652,24.8906, 52, 0); // bankas
SetPlayerMapIcon( playerid, 17, -1548.3396,124.9624,3.5547, 55, 0); // dokai
SetPlayerMapIcon( playerid, 1, -3166.0491,-556.3340,2.6225,33, 0); // TurismoDrag
SetPlayerMapIcon( playerid, 2, -2721.4758,217.9498,4.4844,27, 0); // Tune1
SetPlayerMapIcon( playerid, 3, -1937.7122,244.5863,34.4609, 27, 0); // Tune2
return 1;
}

Reply
#5

Hel me..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)