Object editing doesnt work!
#1

Hi! Today i notised that functiont that worked fine before doesnt work now. I speak about object edition. It looks like OnPlayerSelectObject doesnt work!!! Look at code:

pawn Код:
if (strcmp("/edit", cmdtext, true, 10) == 0)
    {
    SelectObject(playerid);
    ShowPlayerDialog(playerid,DIALOGID+1000,DIALOG_STYLE_MSGBOX,"Edit","Now you can edit objects as you want! Only you can see the changes that you make","..::OK::..","");
    return 1;
    }
pawn Код:
public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)
{
    if(type == SELECT_OBJECT_GLOBAL_OBJECT)
    {
        if(lang[playerid] == 1)
        {
        SendClientMessage(playerid, COLORE_GIALLO, "{ff0000}Вы можете изменять только объекты игрока, а это глобальный объект!");
        }
        if(lang[playerid] == 2)
        {
        SendClientMessage(playerid, COLORE_GIALLO, "{ff0000}You can only edit player objects, this one is global!");
        }
    return 1;
    }
    else
    {
        EditPlayerObject(playerid, objectid);
        SendClientMessage(playerid, 0xFFFFFFFF, "Press and hold SPACE to move camera! Press 'Save' to finish edition");
    }
    return 1;
}
very simple code worked before, but doesnt work now
Reply
#2

If you have the Streamer Plugin, the default functions don't work properly anymore. Use the functions given by Streamer Plugin.
Reply
#3

thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)