error 035 problem - 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: error 035 problem (
/showthread.php?tid=543119)
error 035 problem -
TiXz0r - 24.10.2014
Hello, i dont know how to fix this, im trying all but still error :S
error:
Код:
(1357) : error 035: argument type mismatch (argument 3)
Line 1357:
Код:
strcat(string,""COL_GREY"-"COL_WHITE"Admina vam je postavio Administrator: "COL_ORANGE"%s"COL_WHITE".", pName);
Full command:
http://pastebin.com/VNEPUYsi
Thanks
Re: error 035 problem -
SanAndreasMP - 24.10.2014
Well, as far as i know, strcat doesn't support specifiers. Use format method instead.
EDIT :
pawn Код:
strcat(string,""COL_GREY"-"COL_WHITE"Admina vam je postavio Administrator: "COL_ORANGE"%s"COL_WHITE".", pName[PID]);
Should be done like this :-
pawn Код:
new str[128];
format(str, 128, ""COL_GREY"-"COL_WHITE"Admina vam je postavio Administrator: "COL_ORANGE"%s"COL_WHITE".", pName[PID]);
strcat(string, str);
Re: error 035 problem -
NeGaTiveZ - 25.10.2014
You cant use strcat if you want to specify something use format code instead of strcat