26.02.2011, 19:19
Hello guys.
So I have this stupid problem
I got the line(ondialogresponse)
So things that GOES RIGHT :
The dialog shows up with all the options I wanted.
and
it supouse to check if the player enters integer less then 16 or more then 75 it returns SendClientMessage and showdialog again.
It works.
It supouse to check if the player enters integer between 16 and 75 then it will dini_IntSet of the response .
but even when I do number that is between those two it still shows me the dialog again and SendClientMessage
What should I do ?
Thanks alot .
So I have this stupid problem
I got the line(ondialogresponse)
PHP код:
if (dialogid == 5)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if(!response) return Kick(playerid);
if(response > 15 && response < 76)
{
dini_IntSet(file,"Age",response);
}
if(response < 16 || response > 75) return SendClientMessage(playerid,COLOR_RED,"[URP] : You have to be at least 16 years old And not oled then 75 old")&& ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "Please choose your age", "Please enter your age below", "Choose", "Cancel");
}
The dialog shows up with all the options I wanted.
and
it supouse to check if the player enters integer less then 16 or more then 75 it returns SendClientMessage and showdialog again.
It works.
It supouse to check if the player enters integer between 16 and 75 then it will dini_IntSet of the response .
but even when I do number that is between those two it still shows me the dialog again and SendClientMessage
What should I do ?
Thanks alot .