11.05.2018, 22:46
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?
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); } }