25.01.2014, 13:56
Look at this guys , to be honest i don't know how to fix this
pawn Код:
gettime(date[1][0], date[1][1], date[1][3]);
format(msg[0], 64, "[%02d/%02d/%02d - %02d:%02d:%02d] ", date[0][2], date[0][1], date[0][0], date[1][0], date[1][1], date[1][2]);
if( 1 <= numargs() <= 8 )
{
new n = numargs(), i = -1;
strcat(msg[0], (n > 1) ? ("Arguments:") : ("Argument:")), 0x40);
while( ++i < n )
{
format(msg[1], 0x40, ((n > 1) ? ((i == (n - 1) ? (" %d.") : (" %d,")) : (" %d.")), getarg(i));
strcat(msg[0], msg[1], 0x40);
}
print((strcat(msg[0], "\r\n", 0x40, msg[0]));
}
else print("[Error] The arguments must be between > 0 & <= 8. \r\n");
}