Dialog Small Issue(Fast help please)
#1

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);
                            }
                        }
                    } 
Reply
#2

Show me your "getdate" stock.
Reply
#3

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

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]); 
Reply
#5

i fixed it..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)