error 035 problem
#1

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
Reply
#2

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);
Reply
#3

You cant use strcat if you want to specify something use format code instead of strcat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)