[HELP] Dialog Input Problem
#1

Hi guys, i'm doing a script where the player must answer True or False for each question but there's a problem. Sometimes the question doesn't shown. To make a question, i've done a dialog and i've resolved a similar bug that doesn't shown a question of 37 characters or more but now there is this problem and i don't know how to fix it.

pawn Код:
if(dialogid == DIALOG_QUEST)
    {
        if(!response)
        {
           SendClientMessage(playerid, COLOR_RED, "*** Hai annullato la domanda!");
        }
        else
        {
        if(strlen(inputtext) > 36) return SendClientMessage(playerid, COLOR_RED,"*** Domanda troppo lunga!");
        GetPlayerName(playerid, str500, sizeof(str500));
        format(str500, sizeof(str500), "{ffc000}[GaraOX][Domanda] {ffff00}By » {ff0000}%s: {0080FF}» {FFFF00}%s - O se и vera X se и falsa", str500, inputtext[0]);
        ShowPlayerDialog(playerid, DIALOG_OX, DIALOG_STYLE_MSGBOX, "{FF0000}Risposta OX", "{4F4F4F}Scegli la risposta CORRETTA!", "O", "X");
        }
        return 1;
    }
Reply
#2

if(dialogid == DIALOG_QUEST)
{
if(!response)
{
SendClientMessage(playerid, COLOR_RED, "*** Hai annullato la domanda!");
return 1;
}
else
{
if(strlen(inputtext) > 36) return SendClientMessage(playerid, COLOR_RED,"*** Domanda troppo lunga!");
GetPlayerName(playerid, str500, sizeof(str500));
format(str500, sizeof(str500), "{ffc000}[GaraOX][Domanda] {ffff00}By » {ff0000}%s: {0080FF}» {FFFF00}%s - O se и vera X se и falsa", str500, inputtext[0]);
ShowPlayerDialog(playerid, DIALOG_OX, DIALOG_STYLE_MSGBOX, "{FF0000}Risposta OX", "{4F4F4F}Scegli la risposta CORRETTA!", "O", "X");
}
return 1;
}
Reply
#3

hmmm try to do new str500[999]; i think
Reply
#4

@Chris, .-.

@Scripteri, i've put 500 arrays at that string and the SendClientMessage use between 100-200 characters..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)