Save time game in MySQL
#2

connect

StartTime[playerid] = gettime();

disonnect
pawn Код:
format(czas_gry_ogol,sizeof czas_gry_ogol,"UPDATE `Gracze` SET `Czas_gry_ogol` = `Czas_gry_ogol` + %d WHERE `Nick` = '%s'",  (gettime()-StartTime[playerid]), PlayerName(playerid));
and Czas_gry_ogol must be MEDIUMINT( 8 ) UNSIGNED NOT NULL or INT(10)
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: 1 Guest(s)