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") ;
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;
}[/INDENT]
(playerid, dialogid, style, caption[], info[], button1[], button2[])
|
The correct parameters are
Код:
(playerid, dialogid, style, caption[], info[], button1[], button2[]) And you haven't filled in the info, button1 and button2. |
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;
}
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;
}
}
}
|
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.
|
"{FF0000}This is red"