[HELP] Return Cmd
#1

hello , i have this error :
Код HTML:
 warning 202: number of arguments does not match definition
in this public :
Код HTML:
public ShowLoginDialog(playerid)
{
        SendClientMessage(playerid,red,"You are resisted , please Login to your account ! ");
	return dcmd_CMD_LOGIN(playerid);
}
in this line :
Код HTML:
	return dcmd_CMD_LOGIN(playerid);
can any one fix it ?
Reply
#2

You are missing the params argument. Add a variable so it adds a password to login. It should be
pawn Код:
dcmd_CMD_LOGIN(playerid, params[]);
Reply
#3

it gives me :
error 017: undefined symbol "params"
Reply
#4

If your /login is like /login [password], You can't return the cmd from another function without formatting a string as the password for the cmd.
Correct me if I'm wrong.

It says undefined symbol "params" because nothing is assinged to params in the ShowLoginDialog callback.

If your cmd is just "/login", then try this: return dcmd_CMD_login(playerid, "");
Reply
#5

tnx works !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)