1 Error on this cmd
#1

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

Change it to

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


Forum Jump:


Users browsing this thread: 1 Guest(s)