I hate this stupid problem !!!
#1

Hello guys.
So I have this stupid problem

I got the line(ondialogresponse)
PHP код:
    if (dialogid == 5)
    {
    new 
name[MAX_PLAYER_NAME], file[256];
    
GetPlayerName(playeridnamesizeof(name));
    
format(filesizeof(file), SERVER_USER_FILEname);
    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(playerid5DIALOG_STYLE_INPUT"Please choose your age""Please enter your age below""Choose""Cancel");
     } 
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 .
Reply


Messages In This Thread
I hate this stupid problem !!! - by bijoyekuza - 26.02.2011, 19:19
Re: I hate this stupid problem !!! - by admantis - 26.02.2011, 19:58
Re: I hate this stupid problem !!! - by MadeMan - 26.02.2011, 20:06
Re: I hate this stupid problem !!! - by admantis - 26.02.2011, 20:08
Re: I hate this stupid problem !!! - by bijoyekuza - 26.02.2011, 20:19

Forum Jump:


Users browsing this thread: 2 Guest(s)