Unix Timestamps
#3

Thanks

Using that include, I get a argument error (1) come up.

pawn Код:
forward ShowBanDialog(playerid);
public ShowBanDialog(playerid)
{
    new rows, fields, date[6];
    cache_get_data(rows, fields);
    if(rows)
    {
        new timestamp[50],BannedBy[32],BanReason[80],string[300];
        cache_get_field_content(0, "Timestamp", timestamp, mysql, 50);
        cache_get_field_content(0, "BannedBy",BannedBy,mysql,32);
        cache_get_field_content(0, "BanReason",BanReason,mysql,80);
        TimestampToDate(timestamp,date[0],date[1],date[2],date[3],date[4],date[5],2);
        format(string,sizeof(string),"You have been banned by %s\nReason: %s\nAt: %d/%d/%d %d:%d\nIf you think that this is a mistake or deserve an other chance,apply on forums",BannedBy,BanReason,date[2],date[1],date[0],date[3],date[4]);
        ShowPlayerDialog(playerid,BannedDialog,DIALOG_STYLE_MSGBOX,"Banned",string,"Close","");
    }
    return 1;
}
Thats the line
pawn Код:
TimestampToDate(timestamp,date[0],date[1],date[2],date[3],date[4],date[5],2);
Reply


Messages In This Thread
Unix Timestamps - by theonethatownz - 26.03.2016, 16:04
Re: Unix Timestamps - by Abagail - 26.03.2016, 16:24
Re: Unix Timestamps - by theonethatownz - 26.03.2016, 16:51
Re: Unix Timestamps - by Mencent - 26.03.2016, 18:39
Re: Unix Timestamps - by theonethatownz - 26.03.2016, 20:18
Re: Unix Timestamps - by czerwony03 - 26.03.2016, 23:20

Forum Jump:


Users browsing this thread: 1 Guest(s)