Few dcmds doing same thing
#1

Hi, I want to create commands in 2 languages.
I don't want to copy code.

Example: I want to have /pay and /givecash doing SAME thing.
Using normal CMDs thats no problem, just use
pawn Код:
if(strcmp(cmd, "/pay", true) == 0 || strcmp(cmd, "/givecash", true) == 0)
but how to do it in dcmd without copying code?
Reply
#2

- Anywhere In your Script:
pawn Код:
Dcmd_Pay(playerid,params[]) return Dcmd_GiveCash(playerid,params);
That's how i'd do it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)