CMD not working
#1

So I made an /addcrane and /destroycrane for my server, here are the CMDs
pawn Код:
new CraneObject;

CMD:addcrane(playerid, params[])
{
    new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
    GetPlayerPos(playerid, X, Y, Z);
    CraneObject = CreateDynamicObject(1378, X, Y, Z, 0.0, 0.0, 0.0);

    return 1;
}

CMD:destroycrane(playerid, params[])
{
    DestroyDynamicObject(CraneObject);
    return 1;
}
But for some reason when I do /addcrane nothing happens, the object is not created.. Help anyone.
Reply


Messages In This Thread
CMD not working - by Mriss - 12.04.2014, 05:48
Re: CMD not working - by Dignity - 12.04.2014, 05:51
Re: CMD not working - by Mriss - 12.04.2014, 06:03
Re: CMD not working - by Dignity - 12.04.2014, 06:04
Re: CMD not working - by Mriss - 12.04.2014, 06:08
Re: CMD not working - by Dignity - 12.04.2014, 06:13
Re: CMD not working - by Mriss - 12.04.2014, 06:18
Re: CMD not working - by Dignity - 12.04.2014, 06:22
Re: CMD not working - by Mriss - 12.04.2014, 06:25
Re: CMD not working - by Dignity - 12.04.2014, 06:27

Forum Jump:


Users browsing this thread: 1 Guest(s)