Dialog problem...
#1

I make a year insert thing ... but when i type for example 16 in inputbox the result of inputtext is 49 lol look at my code


pawn Код:
if(dialogid == DialogoClass)
    {
        if(response)
        {
            if(!strlen(inputtext)) return ShowPlayerDialog(playerid,DialogoClass,DIALOG_STYLE_INPUT,"Quanti anni hai?","Inserisci qui sotto il numero dei tuoi anni!\nServono per questioni di parolaccie e contenuti non adatti ai minori\ni tuoi anni non verranno detti a nessuno!\nse premi no il server te li richiedera una prossima volta \n INSERISCI GLI ANNI PRIMA DI PREMERE OK!\n SE NON VUOI INSERIRE NIENTE PREMI NO","Ok","No");
            if(!isNumeric(inputtext)) return ShowPlayerDialog(playerid,DialogoClass,DIALOG_STYLE_INPUT,"Quanti anni hai?","Inserisci qui sotto il numero dei tuoi anni!\nServono per questioni di parolaccie e contenuti non adatti ai minori\ni tuoi anni non verranno detti a nessuno!\nse premi no il server te li richiedera una prossima volta \n SI POSSONO INSERIRE SOLO NUMERI","Ok","No");
            SendClientMessage(playerid,RED,"Grazie per aver inserito gli anni!");
            printf("Player %s Ha inserito gli anni (%d)",Name(playerid),inputtext);
            new QueryA[300];
            format(QueryA, sizeof(QueryA), "UPDATE `"TavoMysql"` SET `Anni` = '%d' WHERE `NomePlayer` = '%s'",inputtext,Name(playerid));
            mysql_query(QueryA);
        }
    }
EDIT

pawn Код:
printf("Player %s Ha inserito gli anni (%d)",Name(playerid),inputtext);
eng printf("Player %s ahve insert the years (>>> the years of inputtext%d)",Name(playerid),inputtext);
Reply


Messages In This Thread
Dialog problem... - by iJumbo - 21.01.2011, 08:21
Re: Dialog problem... - by Sascha - 21.01.2011, 08:26
Re: Dialog problem... - by NO.L3O - 21.01.2011, 08:27
Re: Dialog problem... - by iJumbo - 21.01.2011, 08:31

Forum Jump:


Users browsing this thread: 3 Guest(s)