SA-MP Forums Archive
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: Problem (/showthread.php?tid=465330)



Problem - dennissk - 21.09.2013

error 035: argument type mismatch (argument 2)

PHP код:
            else if (GetPlayerState(i) == && PlayerToPoint(1.0i2230.3579,-2286.2107,14.3751))
            {
                if(
PlayerInfo[i][pJob] == 22)
                {
                    
format(stringsizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d"matssys[MatsAmmount]);
                    
GameTextForPlayer(istring50003);
                }
                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 :/
                
}
            } 



Re: Problem - Problems - 21.09.2013

which line got the Error ?


Re: Problem - JimmyCh - 21.09.2013

This:
pawn Код:
SendClientMessage(i, COLOR_WHITE,string)
Replace it with your line, you forgot who to SendClientMessage to.


Re: Problem - ajam112 - 21.09.2013

[COMMENT HAS BEEN DELETE]


Re: Problem - dennissk - 21.09.2013

Quote:
Originally Posted by JimmyCh
Посмотреть сообщение
This:
pawn Код:
SendClientMessage(i, COLOR_WHITE,string)
Replace it with your line, you forgot who to SendClientMessage to.
Thanks