Help about DestroyObject(i); - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help about DestroyObject(i); (
/showthread.php?tid=93151)
Help about DestroyObject(i); -
lukica - 23.08.2009
I made a command like this...
Quote:
if(strcmp(cmdtext,"/destroy object",true)==0) {
for(new i = 0;i<MAX_OBJECTS;i++) {
new Float os1,Float os2,Float os3;
GetObjectPos(i, pos1,pos2,pos3);
if(PlayerToPoint(5.0,playerid,pos1,pos2,pos3)) {
DestroyObject(i);
return 1; } }
return 1; }
|
But it doenst work...why...
Re: Help about DestroyObject(i); -
ronyx69 - 23.08.2009
Try to change /destroy object to /destroyobject.
Re: Help about DestroyObject(i); -
lukica - 23.08.2009
I try...dont work
Re: Help about DestroyObject(i); -
lukica - 23.08.2009
OMG OMFG...i cant belive...I place here good command...it works...IM sto stupid...OMG OMFG...Im makinc cool dilers :P
Re: Help about DestroyObject(i); -
ronyx69 - 23.08.2009
What was your mistake then?
Re: Help about DestroyObject(i); -
lukica - 23.08.2009
I dont know....