Date input
#1

How to check if player string is date format (2015-03-07 YYYY-MM-DD) ? and too i want to do if player write number with 0 like 01 | 02 | 03 ... Replace that and make only 1 2 3
Reply
#2

You mean

if( Year > 9 )
{
// bad
}
if( Year < 1 )
{
// bad
}

Like this?
Reply
#3

new Years,Month,Day;

Код:
if(sscanf(params, "p<->ddd", Years,Month,Day ))
{
   // Player write just command without parameters i can check it here?
   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)