SA-MP Forums Archive
Server Crash - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server Crash (/showthread.php?tid=573895)



Server Crash - IndependentGaming - 11.05.2015

Hello I have a problem when i type /shop my server is crashing see:

PHP код:
[17:50:26] [ZCMD] Mr.Kingpin: /shop
[17:50:29] [warning] client exceeded 'messageslimit' IP:59523 (640) Limit: 500/sec
[17:50:40] [MYSQL] Saving Mr.Kingpin's account...
[17:50:40] [part] Mr.Kingpin has left the server (1:0)
[17:50:40] [MYSQL] Successfully saved Mr.Kingpin'
s account. 
It happen only by /shop so far i know!

if i type a command to teleport or type/spam in the normal chat nothing happen.

what can be the problem ?


AW: Server Crash - Kaliber - 11.05.2015

Can u show us the command?


Re: Server Crash - Toxik - 11.05.2015

send us your Command


Re: Server Crash - IndependentGaming - 11.05.2015

Command:
PHP код:
CMD:shop(playerid, params[])
{
    if(
IsPlayerInRangeOfPoint(playerid, 7.0, 2498.2661, -1687.1343, 13.4928))
    {
        
ShowPlayerDialog(playerid, DIALOG_SHOP, DIALOG_STYLE_LIST, "Shop", " Armor ($5000)\nSpas-12 ($5000)\nAK47 ($5000)\nM4 ($5000)\nSniper ($5000)\nDeagle ($3000)\nShotgun ($2000)\nMP5 ($2000)", "Buy", "Close");
    }
    return 
1;
} 

Dialog:
PHP код:
    else if(dialogid == DIALOG_SHOP)
    {
        switch(
listitem)
        {
            case 
0: //Vest/armour
            
{
            if(
GetPlayerMoney(playerid) < 6000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money for that.");
            
GivePlayerCash(playerid, -5000);
            
SetPlayerArmour(playerid, 100);
            }
            case 
1: //Spas-12
            
{
            if(
GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money for that.");
            
GivePlayerCash(playerid, -5000);
            
GivePlayerGun(playerid, 27, 50); 
            }
            case 
2: //AK47
            
{
            if(
GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money for that.");
            
GivePlayerCash(playerid, -5000);
            
GivePlayerGun(playerid, 30, 50); 
            }
            case 
3: //M4
            
{
            if(
GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money for that.");
            
GivePlayerCash(playerid, -5000);
            
GivePlayerGun(playerid, 31, 50); 
            }
            case 
4: //Sniper
            
{
            if(
GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money for that.");
            
GivePlayerCash(playerid, -5000);
            
GivePlayerGun(playerid, 34, 50); 
            }
            case 
5: //Deagle
            
{
            if(
GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money for that.");
            
GivePlayerCash(playerid, -3000);
            
GivePlayerGun(playerid, 24, 50); 
            }
            case 
6: //Shotgun
            
{
            if(
GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money for that.");
            
GivePlayerCash(playerid, -2000);
            
GivePlayerGun(playerid, 25, 50); 
            }
            case 
7: //MP5
            
{
            if(
GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money for that.");
            
GivePlayerCash(playerid, -2000);
            
GivePlayerGun(playerid, 29, 50); 
            }
        }
    }
    return 
1;
} 



Re: Server Crash - IndependentGaming - 11.05.2015

Anyone ?


Re: Server Crash - Konstantinos - 11.05.2015

Server crash? Load crashdetect plugin: https://github.com/Zeex/samp-plugin-...etect/releases
Do this as well: https://github.com/Zeex/samp-plugin-...ith-debug-info

Run the server, join and type /shop. Post your server log.


Re: Server Crash - IndependentGaming - 11.05.2015

it shows nothing


Re: Server Crash - Konstantinos - 11.05.2015

If crashdetect plugin was loaded correctly and prints nothing, then it's not a server crash!

Quote:
Originally Posted by SacrificeGaming
Посмотреть сообщение
if i type a command to teleport or type/spam in the normal chat nothing happen.
You may lost connection, are you sure that samp-server.exe/samp03svr is still running after typing the command?


Re: Server Crash - IndependentGaming - 11.05.2015

Yes i tried when i type /shop the server crash direct


Re: Server Crash - IndependentGaming - 12.05.2015

This is all i get

PHP код:
[15:23:28] [ZCMD] Ryan_T_Jackson: /shop
[15:23:31] [warning] client exceeded 'messageslimit' IP:26084 (636) Limit: 500/sec
[15:23:32] [ZCMD] Mr.Kingpin: /shop
[15:23:33] [warning] client exceeded 'messageslimit' IP:60454 (624) Limit: 500/sec
[15:23:41] [MYSQL] Saving Ryan_T_Jackson's account...
[15:23:41] [part] Ryan_T_Jackson has left the server (1:0)
[15:23:41] [MYSQL] Successfully saved Ryan_T_Jackson'
s account.
[
15:23:44] [MYSQL] Saving Mr.Kingpin's account...
[15:23:44] [part] Mr.Kingpin has left the server (0:0)
[15:23:44] [MYSQL] Successfully saved Mr.Kingpin'
s account. 
My server.cfg

PHP код:
echo Executing Server Config...
lanmode 0
rcon_password 
maxplayers 50
port 7777
hostname Deathmatch by Kingpin
[Test version!]
gamemode0 DM 1
plugins mysql Whirlpool sscanf streamer fixes2 crashdetect
filterscripts
announce 0
query 1
chatlogging 1
language English
weburl www
.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat 
[%H:%M:%S]
ackslimit 5000 
As you see im not using any filterscripts so its not that problem its in side the gamemode somewhere.