SA-MP Forums Archive
OnPlayerSelectObject problem - 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: OnPlayerSelectObject problem (/showthread.php?tid=645284)



OnPlayerSelectObject problem - Kraeror - 24.11.2017

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


Re: OnPlayerSelectObject problem - SyS - 24.11.2017

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)



Re: OnPlayerSelectObject problem - Kraeror - 24.11.2017

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!!!!!!!