Help: Error 035: argument type mismatch (argument 4)
#6

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid==DIALOG_REGISTER)
    {
	    if(response==0)
	    {
	        SendClientMessage(playerid, CRVENA, "Kikovan si! Razlog: Odustao si od Registracije");
	        Kick(playerid);
	        return 1;
	    }
	    if(response==1)
	    {
	        if(!strlen(inputtext))
	        {
	            SendClientMessage(playerid, CRVENA, "Sifra koju ste napisali je prekratka");
	            ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, CRVENA, "Molim te napisi duzu sifru", "Yes", "No");
	            return 1;
	        }
	        else
	        {
	        	Register(playerid, inputtext);
	        	return 1;
			}
	    }
	}
	if(dialogid==DIALOG_TELEPORT)
	{
		if(response)
		{
		    if(listitem==0)
		    {
		        //Spawn
		        SetPlayerPos(playerid, 2265.5715,62.9721,26.4844 );
			}
			if(listitem==1)
			{
			    //Banka
			    SetPlayerPos(playerid, 2299.1245,-16.0958,26.4844 );
			}
		}
		else
		{
		    SendClientMessage(playerid, PLAVA, "Odustali ste od teleportacije");
		}
		
 	}
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)