Dialogs don't respond.
#3

That's the end of OnDialogResponse, the next one is this:
pawn Код:
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
    new Float:oldX, Float:oldY, Float:oldZ,Float:oldRotX, Float:oldRotY, Float:oldRotZ;
    GetDynamicObjectPos(objectid, oldX, oldY, oldZ);
    GetDynamicObjectRot(objectid, oldRotX, oldRotY, oldRotZ);
    if(response == EDIT_RESPONSE_FINAL)
    {
        SetDynamicObjectPos(objectid, fX, fY, fZ);
        SetDynamicObjectRot(objectid, fRotX, fRotY, fRotZ);
        ObjectInfo[editingobject[playerid]][x] = fX;
        ObjectInfo[editingobject[playerid]][y] = fY;
        ObjectInfo[editingobject[playerid]][z] = fZ;
        ObjectInfo[editingobject[playerid]][rx] = fRotX;
        ObjectInfo[editingobject[playerid]][ry] = fRotY;
        ObjectInfo[editingobject[playerid]][rz] = fRotZ;
        SaveObject(editingobject[playerid]);
        editingobject[playerid] = 999;
    }
    if(response == EDIT_RESPONSE_CANCEL)
    {
        SetDynamicObjectPos(editingobject[playerid], oldX, oldY, oldZ);
        SetDynamicObjectRot(editingobject[playerid], oldRotX, oldRotY, oldRotZ);
        editingobject[playerid] = 999;
    }
}
If needed, that's the beginning of OnDialogResponse:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new f_name[128];
    format(f_name,sizeof(f_name),"{00c982}FACTION EDIT - {b7ba00}%s",FactionInfo[Editing[playerid]][fName]);
    print("DEBUG");
    switch(dialogid)
    {
Reply


Messages In This Thread
Dialogs don't respond. - by printer - 29.03.2014, 17:35
Re: Dialogs don't respond. - by Abagail - 29.03.2014, 17:37
Re: Dialogs don't respond. - by printer - 29.03.2014, 17:38
Re: Dialogs don't respond. - by printer - 29.03.2014, 19:22

Forum Jump:


Users browsing this thread: 3 Guest(s)