SA-MP Forums Archive
Dialog Small Issue(Fast help please) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog Small Issue(Fast help please) (/showthread.php?tid=364480)



Dialog Small Issue(Fast help please) - Akcent_Voltaj - 30.07.2012

Dialog so look how can i make it so it allows this type dd/mm/yy (day/month/year) i type 22 and im born in 2012... please help

i put text above see cause i need it if i take it its underfind..

PHP код:
new text[128]; 
PHP код:
if(dialogid == 52)
                    {
                        if(
response)
                        {
                            new 
yearmonth,day;
                            
getdate(yearmonthday);
                            new 
DateInfo[3][20];
                            new 
check year strvalEx(DateInfo[2]);
                            
split(textDateInfo'/');
                            {
                                
PlayerInfo[playerid][pAge] = check;
                                
GetPlayerName(playeridsendernamesizeof(sendername));
                                
format(string,256,"Ok %s, deci ai %d ani.",sendernamePlayerInfo[playerid][pAge]);
                                
SCM(playerid,COLOR_GREY,string);
                                
RegistrationStep[playerid] = 0;
                                
TutTime[playerid] = 1;
                                
OnPlayerUpdateEx(playerid);
                            }
                        }
                    } 



Re: Dialog Small Issue(Fast help please) - Camacorn - 31.07.2012

Show me your "getdate" stock.


Re: Dialog Small Issue(Fast help please) - Ballu Miaa - 31.07.2012

Quote:
Originally Posted by Camacorn
Посмотреть сообщение
Show me your "getdate" stock.
GetDate is an inbuilt function in SA-MP. https://sampwiki.blast.hk/wiki/Getdate


Re: Dialog Small Issue(Fast help please) - [MM]RoXoR[FS] - 31.07.2012

Quote:
Originally Posted by Akcent_Voltaj
Посмотреть сообщение
Dialog so look how can i make it so it allows this type dd/mm/yy (day/month/year) i type 22 and im born in 2012... please help

i put text above see cause i need it if i take it its underfind..

PHP код:
new text[128]; 
PHP код:
if(dialogid == 52)
                    {
                        if(
response)
                        {
                            new 
yearmonth,day;
                            
getdate(yearmonthday);
                            new 
DateInfo[3][20];
                            new 
check year strvalEx(DateInfo[2]);
                            
split(textDateInfo'/');
                            {
                                
PlayerInfo[playerid][pAge] = check;
                                
GetPlayerName(playeridsendernamesizeof(sendername));
                                
format(string,256,"Ok %s, deci ai %d ani.",sendernamePlayerInfo[playerid][pAge]);
                                
SCM(playerid,COLOR_GREY,string);
                                
RegistrationStep[playerid] = 0;
                                
TutTime[playerid] = 1;
                                
OnPlayerUpdateEx(playerid);
                            }
                        }
                    } 
Aint it gonna have junk value?
PHP код:
new DateInfo[3][20];
                            new 
check year strvalEx(DateInfo[2]); 



Re: Dialog Small Issue(Fast help please) - Akcent_Voltaj - 31.07.2012

i fixed it..