SA-MP Forums Archive
Error 035 - 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 (/showthread.php?tid=482916)



Error 035 - R4mpage - 23.12.2013

Code
Код:
	if (strcmp("/craftwoodknife", cmdtext, true, 10) == 0)
	{
	if (PlayerInfo[playerid][pWood]< 2)
	return SendClientMessage(playerid, COL_RED,"You don't even have 50 Grams of wood to craft a knife!");
 	else
	GivePlayerWeapon(playerid,4,1);
	PlayerInfo[playerid][pWood]--;
	}
	return 0;
}
Error
Quote:

DayZ.pwn(196) : error 035: argument type mismatch (argument 2)

Please help


Re: Error 035 - R4mpage - 23.12.2013

help plz?


Re: Error 035 - Konstantinos - 23.12.2013

COL_RED is defined as "{FF0000}" which is a string when the 2nd parameter should be an integer.
So either replace COLOR_RED with 0xFF0000FF or add:
pawn Код:
#define COLOR_RED 0xFF0000FF
if it's not already defined and replace COL_RED with COLOR_RED.

EDIT: Please, do not bump. As long as you do, you get less chances of getting help.


Re: Error 035 - R4mpage - 23.12.2013

Thanks dude, +REP for u