Help with LastConnect
#1

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]);
Reply
#2

Please help me!
Reply
#3

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)