DestroyObject
#1

This is the CreateObject code :
PHP код:
CMD:cbarrier(playerid,params[])
{
        new 
Float:xFloat:yFloat:z;
        new 
Float:a;
    
GetPlayerPos(playeridxyz);
    
GetPlayerFacingAngle(playerida);
    
CreateObject(1422x+5,y,z,0,0,a); // change the object id
    
SendClientMessage(playerid, -1"You have spawned a barrier.");
    return 
1;

And the DestroyObject code:
PHP код:
CMD:rbarrier(playerid,params[])
{
DestroyObject(1422); // change the object id
SendClientMessage(playerid, -1"You have removed a barrier");
return 
1;

The CreateObject command works but the DestroyObject one doesn't work.
Please Help !!
Reply


Messages In This Thread
DestroyObject - by nezo2001 - 15.12.2014, 16:33
Re: DestroyObject - by Schneider - 15.12.2014, 16:35
Re: DestroyObject - by nezo2001 - 15.12.2014, 16:55
Re: DestroyObject - by Arastair - 15.12.2014, 16:58
Re: DestroyObject - by nezo2001 - 15.12.2014, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)