Register date
#1

Im trying to save the register date when a player register, in this way:

pawn Код:
new RegDate[128];
format(RegDate, 128, "%02d:%02d:%02d - %02d/%02d/%d", Hour, Minute, Second, Day, Month, Year);
dini_IntSet(file, "RegisterDate",RegDate);
But i get error:

(3632) : error 035: argument type mismatch (argument 3)

On the
pawn Код:
dini_IntSet(file, "RegisterDate",RegDate);
line.
Reply
#2

pawn Код:
format(RegDate, 128, "%d:%d:%d - %d/%d/%d", Hour, Minute, Second, Day, Month, Year);
dini_Set(file, "RegisterDate",RegDate);
Reply
#3

Same.
Reply
#4

The Proper way to save RegDate is as a String, You were saving it as an integer:
pawn Код:
new RegDate[128];
format(RegDate, 128, "%d:%d:%d - %d/%d/%d", Hour, Minute, Second, Day, Month, Year);
dini_Set(file, "RegisterDate",RegDate);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)