A little help in saving and loading time with MySQL.
#1

Hey,

I want to save and load registry date/time with just one string var. For that I was wondering that if something like this would work?

When Player Registers;
Код:
mysql_format(SQL_Connection_Var, query, sizeof(query), "UPDATE players SET RegistryDate=FROM_UNIXTIME(%d, '%%d %%m %%Y %%H:%%I') WHERE id=%d LIMIT 1", 
		GetTime(),PlayerInfo[playerid][pID]);
		mysql_tquery(g_SQL, query);
For loading simple way of loading a string.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)