How to get the day as a non-numeric?
#9

Quote:
Originally Posted by 0xF29323
Quote:
Originally Posted by SilentHuntR
There's a plugin that allows you to change those 'rules' in the samp panel. check out ******' YSF, it can do that.
I know that, I'm using it, but I need a way to update it using a timer, SetServerRule can only be called on OnGameModeInit, so I can't change that. Is it even possible to get the date using getdate(...) as a non numeric character?
SetServerRule can be called whenever.

you could change this to fit for days
pawn Code:
GetMonthName(name[])
{
    new tmp,month;
    getdate(tmp,month,tmp);
    if(month==1)format(name,3,"JAN");
    if(month==2)format(name,3,"FEB");
    if(month==3)format(name,3,"MAR");
    if(month==4)format(name,3,"APR");
    if(month==5)format(name,3,"MAY");
    if(month==6)format(name,3,"JUN");
    if(month==7)format(name,3,"JUL");
    if(month==8)format(name,3,"AUG");
    if(month==9)format(name,3,"SEP");
    if(month==10)format(name,3,"OCT");
    if(month==11)format(name,3,"NOV");
    if(month==12)format(name,3,"DEC");
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)