SA-MP Forums Archive
Help with LastConnect - 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: Help with LastConnect (/showthread.php?tid=569262)



Help with LastConnect - Sensation - 29.03.2015

Hey guys i made a LastConnect system for my server but when i quit from my server the result is

LastConnect=/2015 in my user file

How can i solve this problem. Please help me. Sorry for my bad English

Код:
new year,month,day;
    getdate(year,month,day);
    new lconnect[15];

      format(lconnect,sizeof(lconnect)," %d/%d/%d", day,month,year);
        dUserSet(PlayerName(playerid)).("LastConnect",lconnect[playerid]);



Re: Help with LastConnect - Sensation - 29.03.2015

Please help me!


Re: Help with LastConnect - Konstantinos - 29.03.2015

Change to:
pawn Код:
dUserSet(PlayerName(playerid)).("LastConnect",lconnect);
but consider changing to y_ini (for files) or MySQL/SQLite for better performance.


Re: Help with LastConnect - Sensation - 29.03.2015

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Change to:
pawn Код:
dUserSet(PlayerName(playerid)).("LastConnect",lconnect);
but consider changing to y_ini (for files) or MySQL/SQLite for better performance.
When I remove the "/" result is LastConnect=29 03 2015