argument type mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: argument type mismatch (
/showthread.php?tid=603267)
argument type mismatch -
theonethatownz - 20.03.2016
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]
Re: argument type mismatch -
Vince - 20.03.2016
COLOR_GRAY is apparently not defined as an integer.
Re: argument type mismatch -
theonethatownz - 20.03.2016
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)
Re: argument type mismatch -
Threshold - 20.03.2016
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