Save time game in MySQL
#1

Hi,
I have a problem. Create this code in callback OnPlayerDisconnect.

Код:
 new czas_gry_ogol[128];

	new  Hour, Minute, Second;
	gettime( Hour, Minute, Second);
	format(czas_gry_ogol,sizeof czas_gry_ogol,"UPDATE `Gracze` SET `Czas_gry_ogol` = `Czas_gry_ogol` + '%02d:%02d:%02d'  WHERE `Nick` = '%s'",  Hour, Minute, Second, PlayerName(playerid));
	mysql_query(czas_gry_ogol);
If a player plays 2 sec to the database is recorded as 30 sec.
How to save time game player?
Please help.
Reply


Messages In This Thread
Save time game in MySQL - by Kerth - 02.11.2013, 14:48
Re: Save time game in MySQL - by Jefff - 02.11.2013, 15:02
Re: Save time game in MySQL - by Kerth - 02.11.2013, 15:17
Re: Save time game in MySQL - by Jefff - 02.11.2013, 18:50
Re: Save time game in MySQL - by Kerth - 02.11.2013, 21:03
Re: Save time game in MySQL - by rappy93 - 02.11.2013, 21:16
Re: Save time game in MySQL - by Kerth - 02.11.2013, 21:28
Re: Save time game in MySQL - by Jefff - 02.11.2013, 21:32
Re: Save time game in MySQL - by Kerth - 02.11.2013, 21:51
Re: Save time game in MySQL - by rappy93 - 02.11.2013, 21:55

Forum Jump:


Users browsing this thread: 4 Guest(s)