Server Crash
#1

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

PHP код:
[17:50:26] [ZCMDMr.Kingpin: /shop
[17:50:29] [warningclient exceeded 'messageslimit' IP:59523 (640Limit500/sec
[17:50:40] [MYSQLSaving 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 ?
Reply
#2

Can u show us the command?
Reply
#3

send us your Command
Reply
#4

Command:
PHP код:
CMD:shop(playeridparams[])
{
    if(
IsPlayerInRangeOfPoint(playerid7.02498.2661, -1687.134313.4928))
    {
        
ShowPlayerDialog(playeridDIALOG_SHOPDIALOG_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(playeridCOLOR_WHITE"You don't have enough money for that.");
            
GivePlayerCash(playerid, -5000);
            
SetPlayerArmour(playerid100);
            }
            case 
1//Spas-12
            
{
            if(
GetPlayerMoney(playerid) < 5000) return SendClientMessage(playeridCOLOR_WHITE"You don't have enough money for that.");
            
GivePlayerCash(playerid, -5000);
            
GivePlayerGun(playerid2750); 
            }
            case 
2//AK47
            
{
            if(
GetPlayerMoney(playerid) < 5000) return SendClientMessage(playeridCOLOR_WHITE"You don't have enough money for that.");
            
GivePlayerCash(playerid, -5000);
            
GivePlayerGun(playerid3050); 
            }
            case 
3//M4
            
{
            if(
GetPlayerMoney(playerid) < 5000) return SendClientMessage(playeridCOLOR_WHITE"You don't have enough money for that.");
            
GivePlayerCash(playerid, -5000);
            
GivePlayerGun(playerid3150); 
            }
            case 
4//Sniper
            
{
            if(
GetPlayerMoney(playerid) < 5000) return SendClientMessage(playeridCOLOR_WHITE"You don't have enough money for that.");
            
GivePlayerCash(playerid, -5000);
            
GivePlayerGun(playerid3450); 
            }
            case 
5//Deagle
            
{
            if(
GetPlayerMoney(playerid) < 3000) return SendClientMessage(playeridCOLOR_WHITE"You don't have enough money for that.");
            
GivePlayerCash(playerid, -3000);
            
GivePlayerGun(playerid2450); 
            }
            case 
6//Shotgun
            
{
            if(
GetPlayerMoney(playerid) < 2000) return SendClientMessage(playeridCOLOR_WHITE"You don't have enough money for that.");
            
GivePlayerCash(playerid, -2000);
            
GivePlayerGun(playerid2550); 
            }
            case 
7//MP5
            
{
            if(
GetPlayerMoney(playerid) < 2000) return SendClientMessage(playeridCOLOR_WHITE"You don't have enough money for that.");
            
GivePlayerCash(playerid, -2000);
            
GivePlayerGun(playerid2950); 
            }
        }
    }
    return 
1;

Reply
#5

Anyone ?
Reply
#6

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.
Reply
#7

it shows nothing
Reply
#8

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?
Reply
#9

Yes i tried when i type /shop the server crash direct
Reply
#10

This is all i get

PHP код:
[15:23:28] [ZCMDRyan_T_Jackson: /shop
[15:23:31] [warningclient exceeded 'messageslimit' IP:26084 (636Limit500/sec
[15:23:32] [ZCMDMr.Kingpin: /shop
[15:23:33] [warningclient exceeded 'messageslimit' IP:60454 (624Limit500/sec
[15:23:41] [MYSQLSaving 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] [MYSQLSaving 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.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)