OnPlayerEditObject [ crashdetect ]
#3

PHP код:
if(editing[playerid] == 9)
     {
         if(
response == EDIT_RESPONSE_FINAL)
        {
             new 
treeid 0;
             for(new 
0sizeof(TI); b++) { if(TI[b][tSQLID] != 1treeid1; }
            
DestroyObject(tobject[playerid]);
            
TreeObject[treeid] = CreateDynamicObject(19076fXfYfZfRotXfRotYfRotZ); // 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(strsizeof(str), "[INFO]: %s created a TREE ID:%d"GetName(playerid), treeid);
            
AdminMSG(Yellowstr);
            
editing[playerid] = 0;
        }
        if(
response == EDIT_RESPONSE_CANCEL)
        {
            
DestroyObject(jobjekat[playerid]);
            
editing[playerid] = 0;
        }
    } 
Reply


Messages In This Thread
OnPlayerEditObject [ crashdetect ] - by IdonTmiss - 10.11.2018, 10:29
Re: OnPlayerEditObject [ crashdetect ] - by khRamin78 - 10.11.2018, 11:42
Re: OnPlayerEditObject [ crashdetect ] - by IdonTmiss - 11.11.2018, 11:38

Forum Jump:


Users browsing this thread: 2 Guest(s)