05.07.2012, 15:37
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:
very simple code worked before, but doesnt work now
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;
}
