SA-MP Forums Archive
1 Error on this cmd - 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: 1 Error on this cmd (/showthread.php?tid=510671)



1 Error on this cmd - pln103 - 02.05.2014

I got an error on this cmd.
Код:
(107) : error 035: argument type mismatch (argument 2)
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/ice", cmdtext, true, 10) == 0)
	{
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 423)
		{
            iceJob[playerid] = 1;
			new name[MAX_PLAYER_NAME], string[90];
			GetPlayerName(playerid, name, sizeof(name));
			format(string, sizeof(string), "* {6EF83C}You have started {FFAF00}Sale {00C0FF}Ice Cream.");
			SendClientMessage(COLOR_YELLOW, string);
			SetPlayerCheckpoint(playerid,1037.7463,-1333.4785,13.5476,3);
			SendClientMessage(playerid,COLOR_SILVER,"* Go to these points Red on map!");
			return 1;
		}
        SendClientMessage(playerid, COLOR_RED,"Only ice car Start jobs!");
    }
    return 0;
}



Re: 1 Error on this cmd - Trynda - 02.05.2014

Change it to

pawn Код:
SendClientMessage(playerid, COLOR_YELLOW, string);