OnPlayerEditObject [ crashdetect ]
#1

I am doing a system for dynamic X-MAS trees and I've come across this problem....

PHP код:
[debug#0 00316f58 in public OnPlayerEditObject (playerid=0, playerobject=0, objectid=582, response=1, Float:fX=291.56863, Float:fY=-1514.89966, Float:fZ=23.49372, Float:fRotX=0.00000, Float:fRotY=0.00000, Float:fRotZ=0.00000)
// On this line
xmastree[treeid] = CreateDynamicObject(19076fXfYfZfRotXfRotYfRotZ); 
Reply
#2

show us full debug Error and OnPlayerEditObject full please so we can fix that
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)