28.04.2011, 16:05
Helo ppl. Need help
I have made a command that will create an object
example
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.
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);
}
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.