argument type mismatch
#1

Error:

Quote:

0.01.pwn(351) : error 035: argument type mismatch (argument 2)

[code]if(sscanf(params, "s[24]ddD(1)", model, color1, color2)) return SendClientMessage(playerid, COLOR_GRAY, "/createveh [vehiclemodel] [color1] [color2]");[code]
Reply
#2

COLOR_GRAY is apparently not defined as an integer.
Reply
#3

Updated to this:

Line 430
Код:
if(sscanf(params, "s[24]ddD(1)", model, color1, color2)) return SendClientMessage(playerid, COLOR_GRAY, "/createv [vehiclemodel] [color1] [color2]");
Line 545
Код:
format(astr, sizeof(astr), "> [ERROR] %s", str);
    SendClientMessage(playerid, COLOR_GRAY, astr);
Both errors:
error 035: argument type mismatch (argument 2)
Reply
#4

Again...

Quote:
Originally Posted by Vince
Посмотреть сообщение
COLOR_GRAY is apparently not defined as an integer.
You need to define COLOR_GRAY as an integer, or create a replacement integer for COLOR_GRAY...

Your #define COLOR_GRAY probably looks like this:
pawn Код:
#define COLOR_GRAY "{FFB0B0}"
It should look like this:
pawn Код:
#define COLOR_GRAY 0xFFB0B0FF
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)