getdate not working
#1

for some reason my command does not give back the amount of days from start of year but the wiki says it should. wierd message comes and has some random symbols and then yourname and the command you did

Код:
if(strcmp(cmd, "/day", true) == 0 && IsPlayerConnected(playerid))
	{
	    if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminX] >= 1336)
        {
        new Day = getdate();
        format(string,256,"%d",Day);
		SendClientMessage(playerid,COLOR_WHITE,string);

        }
		return 1;
	}
Reply
#2

Try again:

Код:
if(!strcmp(cmdtext, "/day", true))
{
    if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminX] >= 1336)
    {
        new Day = getdate();
        format(string, 3,"%d",Day);
        SendClientMessage(playerid,COLOR_WHITE,string);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)