dcmd one command calling another command
#1

How do I make a dcmd command to call a different command? I thought it would be like

pawn Код:
dcmd_tele(playerid, params[])
{
    #pragma unused params
    return dcmd(tps,cmdtext);
}
but it was not.

I don't know how to fix this and I'm pretty sure I saw it in a different script before.
Reply
#2

Try
pawn Код:
return dcmd_tps(playerid,params);
So ts like this
pawn Код:
dcmd_tele(playerid, params[])
{
    #pragma unused params
    //your tele command
    return 1;
}

dcmd_tp(playerid,paams[])
{
    return dcmd_tele(playerid,params);//return tele command
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)