error 035: argument type mismatch (argument 3)
#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/jdm", cmdtext, true, 10) == 0)
	{
		ShowPlayerDialog(playerid, 6969, "Jefferson Motel DM", DIALOG_STYLE_LIST, "Police\nRobbers", "Choose", "");
		return 1;
	}
	return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 6969)
	{
		if(response)
		{
			if(listitem == 0)
			{
               SetPlayerPos(playerid, 2216.3401,-1150.5100,1025.7969);
               GivePlayerWeapon(playerid, 24, 500);
               GivePlayerWeapon(playerid, 31, 2500);
	           GivePlayerWeapon(playerid, 9, 1);
               SetPlayerArmour(playerid, 100);
               SetPlayerHealth(playerid, 100);
               SetPlayerSkin(playerid, 285);
			}
			if(listitem == 1)
			{
               SetPlayerPos(playerid, 2216.3401,-1150.5100,1025.7969);
               GivePlayerWeapon(playerid, 24, 500);
		       GivePlayerWeapon(playerid, 31, 2500);
			   GivePlayerWeapon(playerid, 9, 1);
			   SetPlayerArmour(playerid, 100);
			   SetPlayerHealth(playerid, 100);
			   SetPlayerSkin(playerid, 8);
			}
        }
        return 1; 
    }

    return 0;
}
Anybody knows whats wrong?
Reply


Messages In This Thread
error 035: argument type mismatch (argument 3) - by Jason_Roul - 08.09.2013, 14:52
Re: error 035: argument type mismatch (argument 3) - by doreto - 08.09.2013, 14:53
Re: error 035: argument type mismatch (argument 3) - by Dragonsaurus - 08.09.2013, 14:55
Re: error 035: argument type mismatch (argument 3) - by Konstantinos - 08.09.2013, 14:55
Re: error 035: argument type mismatch (argument 3) - by Jason_Roul - 08.09.2013, 14:55

Forum Jump:


Users browsing this thread: 2 Guest(s)