SA-MP Forums Archive
Object editing doesnt work! - 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: Object editing doesnt work! (/showthread.php?tid=356946)



Object editing doesnt work! - pasha97 - 05.07.2012

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


Re: Object editing doesnt work! - Basssiiie - 05.07.2012

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


Re: Object editing doesnt work! - pasha97 - 05.07.2012

thanks!