multiple commands same function in dcmd - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: multiple commands same function in dcmd (
/showthread.php?tid=262087)
multiple commands same function in dcmd -
jamesbond007 - 16.06.2011
lol this is really simple ..
i just had to format my hard drive and i forgot how i could do this...
i tried this but its not right...
Код:
dcmd_ar(playerid, params[])
{
#pragma unused params
return dcmd_arrest(playerid, params[]);
}
so do you get the idea ? i got an arrest command already
Re: multiple commands same function in dcmd -
swieberdevos - 16.06.2011
pawn Код:
dcmd_arrest(playerid, params[]) return cmd_ar(playerid, params);
Not sure, this works for zcmd :P
Re: multiple commands same function in dcmd -
jamesbond007 - 16.06.2011
ok thanks i got it its
Код:
dcmd_ar(playerid, params[])
{
#pragma unused params
return dcmd_arrest(playerid, params);
}
(without extra [] at params in the end)
Re: multiple commands same function in dcmd -
Basicz - 16.06.2011
pawn Код:
// Never used dcmd though
dcmd_ar(playerid, params[])
return dcmd_arrest(playerid, params);