DestroyPlayerObject help needed.
#1

Helo ppl. Need help
I have made a command that will create an object
example
pawn Код:
new bc;
if (strcmp("/bc", cmdtext, true, 10) == 0)
{
    bc = CreatePlayerObject(playerid,1484,Float:x,Flo..........);
}
if (strcmp("/bcd", cmdtext, true, 10) == 0)
{
    DestroyPlayerObject(playerid, bc);
}
This works but the problem starts when I want to destroy objects (using cmd /bcd) that I have created (using cmd /bc)
It only destroys one of them.

How to create that it destroys all the objects that I have created (using cmd /bc)?

Thanks for help.
Reply


Messages In This Thread
DestroyPlayerObject help needed. - by Antonio144 - 28.04.2011, 16:05
Re: DestroyPlayerObject help needed. - by DeathOnaStick - 28.04.2011, 16:25
Re: DestroyPlayerObject help needed. - by Antonio144 - 28.04.2011, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)