Hi, it's about the EditObject module, when I click on save, it does nothing in the appropriate callback, why ?
PHP код:
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float: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;
}