OnPlayerSelectObject problem
#1

Hello why I can't remove the selected object using the function DestroyDynamicObject(objectid);
like this:
PHP код:
public OnPlayerSelectObject(playeridtypeobjectidmodelidFloat:fXFloat:fYFloat:fZ)
{
    
DestroyDynamicObject(objectid);
    return 
1;

Please help guys, +1 REP if You help me
Reply
#2

https://github.com/samp-incognito/sa...wiki/Callbacks
Код:
OnPlayerSelectDynamicObject(playerid, objectid, modelid, Float:x, Float:y, Float:z)
https://github.com/samp-incognito/sa...tives-(Objects)
Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, areaid = -1, priority = 0)
Reply
#3

Quote:
Originally Posted by SyS
Посмотреть сообщение
https://github.com/samp-incognito/sa...wiki/Callbacks
Код:
OnPlayerSelectDynamicObject(playerid, objectid, modelid, Float:x, Float:y, Float:z)
https://github.com/samp-incognito/sa...tives-(Objects)
Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, areaid = -1, priority = 0)
GOOD JOB, THANK YOU MY FRIEND +1 REP!
SOLVED!!!!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)