PDA

View Full Version : Problem


dennissk
21/09/2013, 10:39 PM
error 035: argument type mismatch (argument 2)

else if (GetPlayerState(i) == 1 && PlayerToPoint(1.0, i, 2230.3579,-2286.2107,14.3751))
{
if(PlayerInfo[i][pJob] == 22)
{
format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d", matssys[MatsAmmount]);
GameTextForPlayer(i, string, 5000, 3);
}
else if(PlayerInfo[i][pJob] == 23)
{
new string[256];
format(string,sizeof(string),"{FFFFF}Materials:%d\nB59D00Use:/buymats",matssys[MatsAmmount]);
SendClientMessage(COLOR_WHITE,string);// Line 61365 error :/
}
}

Problems
21/09/2013, 10:43 PM
which line got the Error ?

JimmyCh
21/09/2013, 10:45 PM
This:

SendClientMessage(i, COLOR_WHITE,string)


Replace it with your line, you forgot who to SendClientMessage to.

ajam112
21/09/2013, 10:45 PM
[COMMENT HAS BEEN DELETE]

dennissk
21/09/2013, 10:50 PM
This:

SendClientMessage(i, COLOR_WHITE,string)


Replace it with your line, you forgot who to SendClientMessage to.


Thanks :) ;)