My Server Get Freeze !
#1

Look on this image :



It look my server is fine, and many players playing normal, But its not. When you joining in my server you stuck and dialog login or welcome message will not show , and you will kicking because you not login.

Why i get that ?
Btw all my server plugin has updates !

Sorry for my bad english.
Reply
#2

Does this occurs only to you, or does this also happens to other players in your server?
Reply
#3

This is probably caused by an infinite loop in something relating to your server, which can include: gamemode, filterscript, include
Reply
#4

btw i dont have FS.

Tips for loop will not make server down ?
Reply
#5

Could be in a plugin also, which I forgot to mention.

An infinite loop is a loop which has no condition to end the loop, which means it will go on forever.

Have a look at your loops ("for" or "foreach") and see what you find, comment out some code and keep doing it until you find something.

I had a similar hanging problem and it was due to fixes2 (I'm not saying there's anything wrong with fixes2 but when I didn't use it, there was no hanging).

Try reverting to a previous version (of your script).
Reply
#6

Maybe there is some wrong coding at that dialog, Can you send your dialog codes?
Reply
#7

Dialog ?
Your mean ShowPlayerDialog ?

Thsi my dialog defines :
pawn Код:
/* Dialogs */
enum
{
    DIALOG_REGISTER     = 1,
    DIALOG_LOGIN        = 2,

    DIALOG_CMDS         = 3,
    DIALOG_PLAYER       = 4,
    DIALOG_VEH          = 5,
    DIALOG_HOUSE        = 6,
    DIALOG_BUS          = 7,
    DIALOG_VIP          = 8,
    DIALOG_CREDITS      = 9,
    DIALOG_GEN          = 10,

    DIALOG_CPASS        = 11,
    DIALOG_CNAME        = 12,
    DIALOG_COLORS       = 13,
    DIALOG_COLORSLIST1  = 14,
    DIALOG_COLORSLIST2  = 15,
    DIALOG_COLORSLIST3  = 16,
    DIALOG_WEAPON       = 17,
    DIALOG_WEAPON_1     = 18,
    DIALOG_WEAPON_2     = 19,
    DIALOG_WEAPON_3     = 20,
    DIALOG_WEAPON_4     = 21,
    DIALOG_WEAPON_5     = 22,
    DIALOG_WEAPON_6     = 23,
    DIALOG_TELE_MENU    = 24,
    DIALOG_TELE_LS      = 25,
    DIALOG_TELE_SF      = 26,
    DIALOG_TELE_LV      = 27,
    DIALOG_TELE_JOBS    = 28,
    DIALOG_TELE_TUNE    = 30,
    DIALOG_TELE_MINI    = 31,
    DIALOG_RC           = 32,
    DIALOG_VEHICLE      = 33,
    DIALOG_VEHICLE1     = 34,
    DIALOG_VEHICLE2     = 35,
    DIALOG_VEHICLE3     = 36,
    DIALOG_VEHICLE4     = 37,
    DIALOG_VEHICLE5     = 38,
    DIALOG_VEHICLE6     = 39,
    DIALOG_VEHICLE7     = 40,
    DIALOG_VEHICLE8     = 41,
    DIALOG_VEHICLE9     = 42,
    DIALOG_FSTYLE       = 43,
    DIALOG_TUNE         = 44,
    DIALOG_TUNE2        = 45,
    DIALOG_TUNE3        = 46,
    DIALOG_NEON         = 47,
    DIALOG_NEON2        = 48,
    DIALOG_SIREN        = 49,
    DIALOG_SIREN2       = 50,
    DIALOG_VMENU        = 51,
    DIALOG_VCALL        = 52,
    DIALOG_VBUY         = 53,
    DIALOG_PIZZA        = 54,
    DIALOG_HOTDOG       = 55,
    DIALOG_SWEEPER      = 56,
    DIALOG_TDM          = 57,
    DIALOG_BANK         = 58,
    DIALOG_BANK_DEPO    = 59,
    DIALOG_BANK_WITH    = 60,
    DialogCreateBusSelType = 61,
    DialogBusinessNameChange = 62,
    DialogSellBusiness  = 63,
    DialogBusinessMenu  = 64,
    DialogGoBusiness    = 65,
    DIALOG_GANG         = 66,
    DIALOG_STATS        = 67,
    DIALOG_GCMDS        = 68,
    // indonesian
    DIALOG_CMDS2        = 69,
    DIALOG_PLAYER2      = 70,
    DIALOG_VEH2         = 71,
    DIALOG_HOUSE2       = 72,
    DIALOG_BUS2         = 73,
    DIALOG_VIP2         = 74,
    DIALOG_CREDITS2     = 75,
    DIALOG_GEN2         = 76,
    DIALOG_MENU         = 77,
    DIALOG_TYPE_RCON2   = 78,
    // gangs
    DIALOG_GNAME        = 79,
    DIALOG_GTAG         = 80,
    // fishing job
    DIALOG_FISH         = 81,
    // lABELS
    DIALOG_LABEL        = 82,
    DIALOG_CLABEL       = 83,
    DIALOG_TLABEL       = 84,
    DIALOG_ELABEL       = 85,
    DIALOG_MLABEL       = 86,
    // donasi
    DIALOG_DONAT        = 87,
    DIALOG_TUKAR        = 88,
    // vehicle
    DIALOG_VEHBUY       = 89,
    // anti sobe
    DIALOG_SOBE         = 90,
    DIALOG_TOYS         = 91,
    // toys system
    DIALOG_ATTACH_INDEX             = 92,
    DIALOG_ATTACH_INDEX_SELECTION   = 93,
    DIALOG_ATTACH_EDITREPLACE       = 94,
    DIALOG_ATTACH_MODEL_SELECTION   = 95,
    DIALOG_ATTACH_BONE_SELECTION    = 96,
    DIALOG_ATTACH_OBJECT_SELECTION  = 97,
    DIALOG_ATTACH_OBJECT2_SELECTION = 98,
    // GPS SYSTEM
    DIALOG_GPS  = 99,
    DIALOG_GPS1 = 100,
    DIALOG_GPS2 = 101,
    DIALOG_GPS3 = 102,
    DIALOG_SHOP = 103,
    // Taxi system
    DIALOG_TAXI = 104,
    // top system
    DIALOG_TOP  = 105,
    // Tutorial
    DIALOG_TUT = 106,
    // baru
    DIALOG_CNAME2 = 107,
    DIALOG_CHANGENAME = 108
}
Reply
#8

Are you getting this message in your log?

"Kicking #IP because they didn't logon to the game" ?
Reply
#9

Try to Restart Your Server On Your Server Host
Reply
#10

maybe server lagging , your ping is > 200 , contact your hoster
Reply
#11

Quote:
Originally Posted by SlimDkhili
Посмотреть сообщение
maybe server lagging , your ping is > 200 , contact your hoster
If everyone who had a latency higher than 200ms was considered as "lagging"(especially to the extent you are referring to) half of samp players will be considered lagging lol.

Anyways, as someone posted before, the porblem is likely to be an infinite loop, but only, if it causes the whole server to hang (all players cant play and are not being synced with the server). If it causes only specific people to desync from the server upon login then it may be a problem with your dialogs or code in OnPlayerConnect() like maybe an insufficiently sized array used in OnPlayerConnect() . If its indeed an infinite loop here is an example of an infinite loop to make it easier for you to detect:
Код:
Variable = 0;
for(new i = 0; i < 20; i++)
{
        i = Variable;
}
The above code will set i to Variable which is 0, so i will keep resetting to 0 and wont ever reach 19(the final incrementation for the loop to be executed)
However for such a loop you may have meant:
Код:
Variable = 0;
for(new i = 0; i < 20; i++)
{
        Variable = i;
}
This code will set Variable to i and not i to variable. Sometimes such a mistake may occur :P
Hope this has helped
Reply
#12

Is the problem at the host company
I had the same problem P.S
Reply
#13

Quote:
Originally Posted by ShivRp
Посмотреть сообщение
Are you getting this message in your log?

"Kicking #IP because they didn't logon to the game" ?
Yes I get that ! (RIP English).

But now my server is running normaly (RIP English)
Reply
#14

It happened to me. It was due to having 0.3z-R2.
I installed 0.3z-R3 and all works like a charm now
Reply
#15

I was updated to 0.3z-R3 !
But i got this message :
https://sampforum.blast.hk/showthread.php?tid=524308

Btw you have that too ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)