SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 11/03/2011, 11:33 AM   #1
01
Little Clucker
 
01's Avatar
 
Join Date: Jan 2011
Posts: 19
Reputation: 0
Default Dialog Assistance

How do i convert this into a Dialog with Input Style?

pawn Code:
new year, month,day;
            getdate(year, month, day);
            new DateInfo[3][20];
            split(text, DateInfo, '/');
            if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
                return 0;
            }
            new check = year - strvalEx(DateInfo[2]);
            if(check == year)
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
                return 0;
            }
            if(strvalEx(DateInfo[1]) > month)
            {
                check -= 1;
            }
            else if(strvalEx(DateInfo[1]) == month && strval(DateInfo[0]) > day)
            {
                check -= 1;
            }
            PlayerInfo[playerid][pAge] = check;
            format(string, sizeof(string), "Ok, so you are %d year old.",PlayerInfo[playerid][pAge]);
            SendClientMessage(playerid, COLOR_YELLOW2, string);
            RegistrationStep[playerid] = 3;
            SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Origin? (Type in: America, Europe, Asia or Africa)");
            return 0;
        }
help pleaase
01 is offline  
Old 11/03/2011, 11:35 AM   #2
Hashski
Big Clucker
 
Hashski's Avatar
 
Join Date: Feb 2011
Posts: 132
Reputation: 6
Default Re: Dialog Assistance

Read this, Should help.

http://wiki.sa-mp.com/wiki/How_to_Create_a_Dialog
__________________
www.a-rp.co.uk
Ascension Roleplay
Hashski is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PC Hardware Assistance. BP13 Everything and Nothing 6 29/12/2010 08:11 AM
Need Assistance Buzzbomb Help Archive 5 16/11/2010 08:25 AM
Need economic assistance nesty Help Archive 12 07/02/2010 06:35 AM
May i have some assistance CrimescenesCapo General 3 05/12/2008 09:14 PM


All times are GMT. The time now is 10:01 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.