DIALOG_STYLE_INPUT HELP
#1

How to create this dialog for only numbers?
Reply
#2

PHP код:
IsNumeric(const string[])
{
    for (new 
0strlen(string); ji++)
    {
        if (
string[i] > '9' || string[i] < '0') return 0;
    }
    return 
1;

call the function from the dialog response of your dialog while passing inputtext as parameter as in a if statement.If it return 0 return some message from the dialog response to input number.
Reply
#3

Can you give me simple please?
Reply
#4

I have this error
PHP код:
D:\1-ADMIN-ar cashaloo\Desktop\Samp RP AMX By MySamp.Co.Nr\gamemodes\samprp.pwn(11931) : error 035argument type mismatch (argument 1)
D:\1-ADMIN-ar cashaloo\Desktop\Samp RP AMX By MySamp.Co.Nr\gamemodes\samprp.pwn(11932) : error 029invalid expressionassumed zero
D
:\1-ADMIN-ar cashaloo\Desktop\Samp RP AMX By MySamp.Co.Nr\gamemodes\samprp.pwn(11933) : error 029invalid expressionassumed zero 
MY CODE
PHP код:
                new yj PlayerInfo[playerid][pSastumro];
                if(!
IsNumeric(strval(inputtext)){ShowPlayerDialogEx(playerid,9522,DIALOG_STYLE_INPUT"Bankomati""Error: Shen Sheiyvane Araswori Simboloebi.\n Gamoiyenet Mxolod Cifrebi.""Shetana""Gasvla");}
                
PlayerInfo[playerid][pSastumrogad] =+ strval(inputtext);
                
SasInfo[yj][sGadaxdili] =+ strval(inputtext);
                
format(string,sizeof(string), "INFO: Shen Sheitane Shens Angarishze %d$",strval(inputtext));
                
SendClientMessage(playeridCOLOR_WHITEstring);
                
format(string,sizeof(string), "+%d$",strval(inputtext));
                
GameTextForPlayer(playeridstring50001); 
Reply
#5

PHP код:
if(!IsNumeric(inputtext)){ShowPlayerDialogEx(playerid,9522,DIALOG_STYLE_INPUT"Bankomati""Error: Shen Sheiyvane Araswori Simboloebi.\n Gamoiyenet Mxolod Cifrebi.""Shetana""Gasvla");} 
the code should be like that (idk that language but im assuming that you are sending error message in dialog again)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)