Error 035
#1

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

help plz?
Reply
#3

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.
Reply
#4

Thanks dude, +REP for u
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)