SA-MP Forums Archive
Register date - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Register date (/showthread.php?tid=434041)



Register date - Face9000 - 30.04.2013

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.


Re: Register date - zxc1 - 30.04.2013

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



Re: Register date - Face9000 - 30.04.2013

Same.


Re: Register date - jtemple042996 - 30.04.2013

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);