11.11.2018, 11:38
PHP код:
if(editing[playerid] == 9)
{
if(response == EDIT_RESPONSE_FINAL)
{
new treeid = 0;
for(new b = 0; b < sizeof(TI); b++) { if(TI[b][tSQLID] != 1) treeid= b + 1; }
DestroyObject(tobject[playerid]);
TreeObject[treeid] = CreateDynamicObject(19076, fX, fY, fZ, fRotX, fRotY, fRotZ); // The line that gets the crashdetect error
TI[treeid][tTreeX] = Float:fX;
TI[treeid][tTreeY] = Float:fY;
TI[treeid][tTreeZ] = Float:fZ;
TI[treeid][jRotX] = Float:fRotX;
TI[treeid][jRotY] = Float:fRotY;
TI[treeid][jRotZ] = Float:fRotZ;
sql_create_xmas_tree(jelkaid);
new str[128];
format(str, sizeof(str), "[INFO]: %s created a TREE ID:%d", GetName(playerid), treeid);
AdminMSG(Yellow, str);
editing[playerid] = 0;
}
if(response == EDIT_RESPONSE_CANCEL)
{
DestroyObject(jobjekat[playerid]);
editing[playerid] = 0;
}
}