Adding a parameter to a command, and if that is right...
#1

So I got this command.
pawn Код:
dcmd_secretthing(playerid, params[])
{
    if(sscanf(params, "password[32]", result)) return SendClientMessage(playerid, COLOR_GRAD2, "Wrong password.");
    if(passwordcorrect)
    {
         ...
    }
    return 1;
}
How to make it like, /buy 1, so I can make like, /secretthing 3534635, and that number will be the password.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)