Clothes system crashing my server
#1

I'm not sure how much info is required here to get help with this, but I'm having trouble pinpointing exactly what is causing my server to crash, even though I know the line which is causing it.

Ive spent hours on my test server adding, editing, removing about 30 different clothing items, resizing them, moving them around, etc. and cannot recreate the crash. However, when used on my main server it randomly causes a server crash (happened first time at 28 players, and a second time (after I thought id fixed it) at 14 players).
The problem is that I have no idea which player did what in order to cause the crash, so cannot recreate it myself in order to start fixing the problem.


I know this isn't much information but is it enough for any of you out there to give me some idea what could be causing this line to create a crash?
Код:
SaveClothingObjects(playerid, Index, clothid, bone, Float:c_foffsetX, Float:c_foffsetY, Float:c_foffsetZ, Float:c_fRotX, Float:c_fRotY, Float:c_fRotZ, Float:c_fScaleX, Float:c_fScaleY, Float:c_fScaleZ)
{
    new F1[15],F2[15],F3[15],F4[15],F5[15],F6[15],F7[15],F8[15],F9[15],F10[15],F11[15];

    if(dini_Exists(UserClothPath(playerid)))
    {
    format(F1,15,"O_Model_%d",Index);
    dini_IntSet(UserClothPath(playerid),F1,clothid);

    format(F2,15,"O_Bone_%d",Index);///////////CRASHES SERVER
    dini_IntSet(UserClothPath(playerid),F2,bone);

	format(F3,15,"O_OffX_%d",Index);
	dini_FloatSet(UserClothPath(playerid),F3,c_foffsetX);

    format(F4,15,"O_OffY_%d",Index);
    dini_FloatSet(UserClothPath(playerid),F4,c_foffsetY);

    format(F5,15,"O_OffZ_%d",Index);
    dini_FloatSet(UserClothPath(playerid),F5,c_foffsetZ);

    format(F6,15,"O_RotX_%d",Index);
    dini_FloatSet(UserClothPath(playerid),F6,c_fRotX);

    format(F7,15,"O_RotY_%d",Index);
    dini_FloatSet(UserClothPath(playerid),F7,c_fRotY);

    format(F8,15,"O_RotZ_%d",Index);
    dini_FloatSet(UserClothPath(playerid),F8,c_fRotZ);

    format(F9,15,"O_ScaleX_%d",Index);
    dini_FloatSet(UserClothPath(playerid),F9,c_fScaleX);

    format(F10,15,"O_ScaleY_%d",Index);
    dini_FloatSet(UserClothPath(playerid),F10,c_fScaleY);

    format(F11,15,"O_ScaleZ_%d",Index);
    dini_FloatSet(UserClothPath(playerid),F11,c_fScaleZ);
    }
}
Reply


Messages In This Thread
Clothes system crashing my server - by Ducati - 11.05.2018, 22:46
Re: Clothes system crashing my server - by Dice_ - 12.05.2018, 04:10
Re: Clothes system crashing my server - by Ducati - 13.05.2018, 00:28
Re: Clothes system crashing my server - by andrejc999 - 13.05.2018, 00:53
Re: Clothes system crashing my server - by Dayrion - 13.05.2018, 09:51
Re: Clothes system crashing my server - by Ducati - 15.05.2018, 00:33
Re: Clothes system crashing my server - by CodeStyle175 - 15.05.2018, 07:21
Re: Clothes system crashing my server - by GTLS - 15.05.2018, 08:01
Re: Clothes system crashing my server - by Ducati - 15.05.2018, 12:25

Forum Jump:


Users browsing this thread: 1 Guest(s)