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

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid==DIALOG_REGISTER)
    {
        if(
response==0)
        {
            
SendClientMessage(playeridCRVENA"Kikovan si! Razlog: Odustao si od Registracije");
            
Kick(playerid);
            return 
1;
        }
        if(
response==1)
        {
            if(!
strlen(inputtext))
            {
                
SendClientMessage(playeridCRVENA"Sifra koju ste napisali je prekratka");
                
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUTCRVENA"Molim te napisi duzu sifru") ;
                return 
1;
            }
            else
            {
                
Register(playeridinputtext);
                return 
1;
            }
        }
    }
    if(
dialogid==DIALOG_TELEPORT)
    {
        if(
response)
        {
            if(
listitem==0)
            {
                
//Spawn
                
SetPlayerPos(playerid2265.5715,62.9721,26.4844 );
            }
            if(
listitem==1)
            {
                
//Banka
                
SetPlayerPos(playerid2299.1245,-16.0958,26.4844 );
            }
        }
        else
        {
            
SendClientMessage(playeridPLAVA"Odustali ste od teleportacije");
        }
        
     }
    return 
1;
}[/
INDENT
Reply
#2

The correct parameters are
Код:
(playerid, dialogid, style, caption[], info[], button1[], button2[])
Instead of caption you added a color it seems? You should use color embedding for that.
And you haven't filled in the info, button1 and button2.
Reply
#3

i will fix it tnx
Reply
#4

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
The correct parameters are
Код:
(playerid, dialogid, style, caption[], info[], button1[], button2[])
Instead of caption you added a color it seems? You should use color embedding for that.
And you haven't filled in the info, button1 and button2.
Can`t Work
Reply
#5

Show the new attempt.
Reply
#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
#7

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Show the new attempt.
Код:
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;
}[/CODE]
Reply
#8

Quote:

Instead of caption you added a color it seems? You should use color embedding for that.

You have CRVENA instead of the caption(title), change it to a string.
Reply
#9

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
You have CRVENA instead of the caption(title), change it to a string.

there should be a color RED / CRVENA
It is for registration on the RP server

what precisely I have to write you encountered and we send COD
Reply
#10

Use color embedding for that, like:
Код:
"{FF0000}This is red"
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)