Help : Argument type Mismatch (argument 1)
#1

Код:
if(sscanf(params, "ud", target, level)) return SCM(playerid, Yellow, "[Usage] : /makeadmin [playerid] [level 0 - 5]");
What's Wrong?

Help me, thanks.
Reply
#2

It should work now
Код:
if(sscanf(params, "ud", target, level)) return SCM(playerid, 0xF3FF02, "[Usage] : /makeadmin [playerid] [level 0 - 5]");
Reply
#3

Same Error :/
Reply
#4

Do you have any colors defined?
#define YELLOW "{F3FF02}"
Reply
#5

Yes

Код:
#define Red 0xFF3E3EFF
#define Green 0x00FF00FF
#define Yellow 0xFFFF00FF
#define LightBlue 0x00FFFFFF
#define Orange 0xFF8000FF
#define Purple 0x8000FFFF
#define Blue 0x0080FFFF
Reply
#6

Please check you your "SCM" definition/Macro, in top of the script.

You can also try "SendClientMessage();" instead of "SCM".

Thank you.
Reply
#7

same error

my SCM define :
pawn Код:
#define SCM SendClientMessage
Reply
#8

Should work now
Код:
if(sscanf(params, "ud", target, level)) return SCM(playerid, 0xFFFF00FF, "[Usage] : /makeadmin [playerid] [level 0 - 5]");
Reply
#9

We need to see how did you defined both 'target' and 'level' in order to help you.
Reply
#10

Okay, so problem isn't in your SCM definition. What is the command processor you use at the moment? If passing params "u" and "d" in sscanf, those variables has to be integers.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)