SA-MP Forums Archive
BUG editObjet - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: BUG editObjet (/showthread.php?tid=381751)



BUG editObjet - DarkZeroX - 30.09.2012

Hi, it's about the EditObject module, when I click on save, it does nothing in the appropriate callback, why ?

PHP код:

public OnPlayerEditObject(playeridplayerobjectobjectidresponseFloat:fXFloat:fYFloat:fZFloat:fRotXFloat:fRotYFloat:fRotZ)
{
    
/*if(!playerobject)
    {
        MoveObject(objectid, fX, fY, fZ, 10.0, fRotX, fRotY, fRotZ);
    }*/
    
if(response == EDIT_RESPONSE_FINAL)
    {
       
printf("On save");
       
InfoMeuble[Meubles][MeubleX] = fX;
       
InfoMeuble[Meubles][MeubleY] = fY;
       
InfoMeuble[Meubles][MeubleZ] = fZ;
       
InfoMeuble[Meubles][MeubleA] = fRotX;
       
InfoMeuble[Meubles][ID] = objectid;
       
SaveMeuble(Meubles);
       
printf("On save");
       return 
1;
    }
    return 
1;