Help about DestroyObject(i);
#1

I made a command like this...

Quote:

if(strcmp(cmdtext,"/destroy object",true)==0) {
for(new i = 0;i<MAX_OBJECTS;i++) {
new Floatos1,Floatos2,Floatos3;
GetObjectPos(i, pos1,pos2,pos3);
if(PlayerToPoint(5.0,playerid,pos1,pos2,pos3)) {
DestroyObject(i);
return 1; } }
return 1; }


But it doenst work...why...
Reply
#2

Try to change /destroy object to /destroyobject.
Reply
#3

I try...dont work
Reply
#4

OMG OMFG...i cant belive...I place here good command...it works...IM sto stupid...OMG OMFG...Im makinc cool dilers :P
Reply
#5

What was your mistake then?
Reply
#6

I dont know....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)