24.05.2015, 18:49
Hey guys, When I login into my server, The samp-server.exe close without I do anything, So Does It a bug from script or what?
public OnPlayerConnect(playerid)
{
new string [ 135 ];
Initialize_PTD(playerid);
GetPlayerIp(playerid, pInfo[playerid][IP], 16);
KillTimer(Protection[playerid]);
for (new x=0; x<MAX_WAR; x++)
{
InCP[playerid][x] = 0;
Helping[playerid][x] = 0;
}
Initialize_WarFieldShow(playerid);
Label[playerid] = CreateDynamic3DTextLabel("Blank", -1, 0.0, 0.0, -20, 25.0, playerid);
Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, Label[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.30);
SetPlayerColor(playerid, COLOR_GREY);
ClearMe(playerid);
LoggedIn[playerid] = 0; pInfo[playerid][Admin] = 0; pInfo[playerid][VIP] = 0; pInfo[playerid][Money] = 30000; pInfo[playerid][Scores] = 0;
pInfo[playerid][Kills] = 0; pInfo[playerid][Deaths] = 0; gTeam[playerid] = -1; inClass[playerid] = 1; Capture[playerid] = 0; protect[playerid] = 0;
Spawn[playerid] = 0; gClass[playerid] = 0; aDuty[playerid] = 0; pInfo[playerid][Rank] = 0; pInfo[playerid][pCar] = -1; Warn[playerid] = 0;
HeadShot[playerid] = false; pInfo[playerid][pHelmet] = 0; takeZone[playerid] = -1; LastPM[playerid] = INVALID_PLAYER_ID; flagPlayer[playerid] = -1;
flagPlayer2[playerid] = -1; pInfo[playerid][userid] = -1;
format(string, sizeof(string), "[Connection] Player %s (ID: %d) has connected the server.", nameEx(playerid), playerid);
SendClientMessageToAll(COLOR_GREY, string);
SendClientMessage(playerid, -1, "Welcome to The World War III - "MINI_VERSION" for SAMP "SAMP_VERSION"");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Credits to ShadyEG and Bombo237 for scripting the main gamemode & it's running system.");
SendClientMessage(playerid, COLOR_YELLOW, "Select a team you wish to be in, Once you are spawned, we will ask you which class would you like to choose.");
new query[200];
format(query, sizeof(query), "SELECT * FROM `users` WHERE `username` = '%s' LIMIT 1", nameEx(playerid));
mysql_query(query);
mysql_store_result();
new rows = mysql_num_rows();
if(rows)
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, ""col_lb"Login", ""col_w"This account is registered to our database.\nInsert your password to login to your account.\n"col_r"If this is not your account, logged out and change your nickname.", "Login", "");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, ""col_lb"Register", ""col_w"This account is not registered to our database.\nEnter your own password to create a new account.", "Register", "");
}
mysql_free_result();
return 1;
}
SA-MP Dedicated Server
----------------------
v0.3z-R4, (C)2005-2014 SA-MP Team
[20:15:31] filterscripts = "" (string)
[20:15:31]
[20:15:31] Server Plugins
[20:15:31] --------------
[20:15:31] Loading plugin: mysql
[20:15:31]
> MySQL plugin R5 successfully loaded.
[20:15:31] Loaded.
[20:15:31] Loading plugin: sscanf
[20:15:31]
[20:15:31] ===============================
[20:15:31] sscanf plugin loaded.
[20:15:31] Version: 2.8.1
[20:15:31] (c) 2012 Alex "******" Cole
[20:15:31] ===============================
[20:15:31] Loaded.
[20:15:31] Loading plugin: streamer
[20:15:31]
*** Streamer Plugin v2.7.6 by Incognito loaded ***
[20:15:31] Loaded.
[20:15:31] Loaded 3 plugins.
[20:15:31]
[20:15:31] Filterscripts
[20:15:31] ---------------
[20:15:31] Loaded 0 filterscripts.
[20:15:31]
[20:15:31]
[20:15:31]
[20:15:31] =======================================
[20:15:31] | |
[20:15:31] | YSI version 3.09.0684 |
[20:15:31] | By Alex "******" Cole |
[20:15:31] | |
[20:15:31] =======================================
[20:15:31]
[20:15:38] Initializing Server Settings...
[20:15:38] GameMaster Update: Welcome to State War Field, owned and created by ShadyEG and Bombo237
[20:15:38] Initializing Server Textdraws...
[20:15:38] Initializing Dynamic Objects...
[20:15:38] Initializing GaneZone turfs...
[20:15:38] Initializing Team's Vehicle...
[20:15:38] Initializing WarField turfs...
[20:15:38] Initializing Global Server Timers...
[20:15:38] Initializing Shops...
[20:15:38] Initializing Dynamic MapIcons...
[20:15:38] Intializing 3DText Labels...
[20:15:38] Initializing default hostname, gamemodetext, mapname...
[20:15:38] Initializing Carl Johnson's Ped Animation...
[20:15:38] Initializing Player Classes...
[20:15:38]
[20:15:38] Number of vehicle models: 33
[20:15:38]
[20:15:38] ==========================================
[20:15:38] | |
[20:15:38] | A new version (v<!DOCTYPE) of YSI is |
[20:15:38] | available from: |
[20:15:38] | |
[20:15:38] | [url]www.y-less.com/YSI/YSI_1.0.zip[/url] |
[20:15:38] | |
[20:15:38] ==========================================
[20:15:38]
[20:16:05] Incoming connection: IP HERE
[20:16:05] [join] TestTest has joined the server (IP HERE)
[14:40:48] [debug] Server crashed while executing twwiii.amx
[14:40:48] [debug] AMX backtrace:
[14:40:48] [debug] #0 native mysql_real_escape_string () from mysql.DLL
[14:40:48] [debug] #1 0003a554 in public OnDialogResponse (0, 1, 1, -1, 1547628) from twwiii.amx
[14:40:48] [debug] Native backtrace:
[14:40:48] [debug] #0 680f1bb0 in ?? () from C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll
[14:40:48] [debug] #1 680d4951 in ?? () from C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll
[14:40:48] [debug] #2 680d4996 in ?? () from C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll
[14:40:48] [debug] #3 10005ab1 in ?? () from plugins\mysql.DLL
[14:40:48] [debug] #4 10005c6d in ?? () from plugins\mysql.DLL
[14:40:48] [debug] #5 10008333 in ?? () from plugins\mysql.DLL
[14:40:48] [debug] #6 10006aa6 in ?? () from plugins\mysql.DLL
[14:40:48] [debug] #7 004010b6 in ?? () from samp-server.exe
[14:40:48] [debug] #8 680662ca in ?? () from plugins\crashdetect.DLL
[14:40:48] [debug] #9 68068b28 in ?? () from plugins\crashdetect.DLL
[14:40:48] [debug] #10 680609c7 in ?? () from plugins\crashdetect.DLL
[14:40:48] [debug] #11 6806631a in ?? () from plugins\crashdetect.DLL
[14:40:48] [debug] #12 6b1a51b9 in ?? () from plugins\streamer.DLL
[14:40:48] [debug] #13 0046eae1 in ?? () from samp-server.exe
[14:40:48] [debug] #14 004528f0 in ?? () from samp-server.exe
[14:40:48] [debug] #15 772922c6 in ?? () from C:\Windows\SYSTEM32\ntdll.dll