Hi,
i have solo gunner plugin, and i have problem in it. when map changes / player reconnect the time returns back to normal (before gaining time from SoloGunner plugin )
what does this plugin do? =
Solo Gunner mode That to add more fun to our players gaming experience. This mode can be activated in any round and any map by Silvers, Goldens, and Administrators.
The player who activates this mode becomes a Solo Gunner and the following happens:
The solo gunner will have a knife and a USP gun with 26 bullets only.
The rest of the players will only be able to carry a knife.
The solo gunner's team must help him/her eliminate the opposing team.
The solo gunner shall get 5 minutes added to his/her total time on every player he/she kills.
If the solo gunner gets knifed and killed, he/she will lose 350 minutes of his/her total time and a bell-like sound will be played to inform others.
If a player kills a solo gunner, 100 minutes will be added to his/her total time.
If the solo gunner disconnects from the server (to avoid being killed), he/she will lose 350 minutes.
Solo Gunner Mode is activated for one round only. Everything would return to normal by next round.
Silvers can activate this mode once per day, Goldens twice per day, and Administrators three times per day. However, to keep this mode interesting, the server will allow Solo Gunner mode to be activated a total of 3 times per map.
-- the problem is this plugin works well with Alka's played time plugin and i have another played time works with SQL, In SQL version it dosen't save player's played time when i use set_user_playedtime ..
SoloGunner Code:
Spoiler
PHP Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <fakemeta> #include <engine> #include <cstrike> #include <nvault> #include <played_time> #define PLUGIN "SoloGunner Mode" #define VERSION "1.0" #define AUTHOR "Khalid :)" /* - - - - - - Edit Starts Here - - - - - - - - - - - - - - - - - - - - - - - - - - */ #define ADMIN_FLAG ADMIN_BAN #define GOLDEN_FLAG ADMIN_LEVEL_H #define SILVER_FLAG ADMIN_LEVEL_G #define ACTIVATE_DELAY 20.0 #define SOLO_AMMO 26 #define SOLO_MODEL "vip" // Times #define MINS_FOR_SOLO_KILL 5 #define MINS_DECREMENT_SOLO_KNIFED 350 #define MINS_FOR_SOLO_KILLER 100 #define SOLO_SUICIDE_TIME_DECREMENT 350 #define SOLO_DISCONNECT_TIME_DECREMENT 350 // Limits #define ADMIN_ACTIVATES 3 #define GOLDEN_ACTIVATES 2 #define SILVER_ACTIVATES 1 /* - - - - - - Edit Ends Here - - - - - - - - - - - - - - - - - - - - - - - - - - - */ #define FINAL (ADMIN_FLAG | SILVER_FLAG | GOLDEN_FLAG) #define OFFSET_MAPZONES 235 #define IsValidPlayer(%1) (1 <= %1 <= g_iMaxPlayers) new bool:g_bRunning = false new g_iModeActivates[33], g_iSoloId, Float:g_flRoundStartGameTime new gMsgIdCurWeapon new gMsgIdStatusIcon new g_szOldModel[20] new gVault, g_iMaxPlayers enum _:Levels { ADMIN, GOLDEN, SILVER } new g_iActivateTimes[Levels] = { ADMIN_ACTIVATES, GOLDEN_ACTIVATES, SILVER_ACTIVATES } /* The player who activates this mode becomes a Solo Gunner and the following happens: The solo gunner will have a knife and a USP gun with 26 bullets only. The rest of the players will only be able to carry a knife. The solo gunner shall get 5 minutes added to his/her total time on every player he/she kills. -- wait If the solo gunner gets knifed and killed, he/she will lose 350 minutes of his/her total time and a bell-like sound will be played to inform others. -- wait If a player kills a solo gunner, 100 minutes will be added to his/her total time. -- wait If the solo gunner disconnects from the server (to avoid being killed), he/she will lose 350 minutes. -- wait Solo Gunner Mode is activated for one round only. Everything would return to normal by next round. Silvers can activate this mode once per day, Goldens twice per day, and Administrators three times per day. However, to keep this mode interesting, the server will allow Solo Gunner mode to be activated a total of 3 times per map. */ public plugin_precache() { new szFile[60] formatex(szFile, charsmax(szFile), "models/player/%s/%s.mdl", SOLO_MODEL, SOLO_MODEL)
precache_model(szFile)
precache_sound("bell.wav") } public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR)
if(equal(szWeapon, "knife")) { // Play bell sound client_cmd(0, "spk ^"bell^"")
client_print(iVictim, print_chat, "** %d minutes have been taken from you for being knifed and killed", MINS_DECREMENT_SOLO_KNIFED) set_user_playedtime(iVictim, get_user_playedtime(iVictim) - MINS_DECREMENT_SOLO_KNIFED) }
client_print(0, print_chat, "** %d minutes were added to %s for killing the SoloGunner", MINS_FOR_SOLO_KILLER, szName) set_user_playedtime(iKiller, get_user_playedtime(iKiller) + MINS_FOR_SOLO_KILLER) } } public message_StatusIcon(msgid, msgdest, id) { if(g_bRunning) { static szIcon[10] get_msg_arg_string(2, szIcon, charsmax(szIcon))
nvault_remove(gVault, szAuthId) formatex(szUses, charsmax(szUses), "%d", g_iModeActivates[id]) nvault_set(gVault, szAuthId, szUses) } CanActivate(id, iFlags) { if(get_gametime() - g_flRoundStartGameTime > ACTIVATE_DELAY) { console_print(id, "** Mode connot be activated as more than %f seconds passed since round start", ACTIVATE_DELAY) return 0 }
if( g_iModeActivates[id] > g_iActivateTimes[get_level(iFlags)] ) { console_print(id, "** You have exceeded the SoloGunner mode activates for this day") return 0 }
public plugin_cfg(){ sql = SQL_MakeDbTuple(host,user,pass,db) formatex(g_query,511,"CREATE TABLE IF NOT EXISTS `played_time` (name VARCHAR(32), playedtime INT, date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP)") SQL_ThreadQuery(sql,"query",g_query) } public handle_say(id) { static said[12] read_argv(1, said, 11)
switch(get_pcvar_num(showpt)) { case 0: return PLUGIN_HANDLED;
case 1 : { client_print(id, print_chat, "[Played-Time] You have been playing on the server for: %d minute%s.", timep, timep == 1 ? "" : "s"); client_print(id, print_chat, "[Played-Time] Your total played time on the server: %d minute%s.", timep+PlayedTime[id], timep+PlayedTime[id] == 1 ? "" : "s"); } case 2 : { set_hudmessage(255, 50, 50, 0.34, 0.50, 0, 6.0, 4.0, 0.1, 0.2, -1); show_hudmessage(id, "[Elite-Gaming] You have been playing on the server for: %d minute%s.^n[AMXX]Current time: %s", timep, timep == 1 ? "" : "s", ctime); } } return PLUGIN_HANDLED; } else if(equal(said,"/time")){ new data[1];data[0]=id
formatex(g_query,511,"SELECT * FROM played_time ORDER BY playedtime DESC LIMIT 15") SQL_ThreadQuery(sql,"show_top15",g_query,data,1)
console_print(id, "-----------------------(#PlayedTime#)-----------------------"); console_print(id, "[Played-Time] %s have been playing on the server for %d minute%s.",name, timep, timep == 1 ? "" : "s"); console_print(id, "[Played-Time] %s's total played time on the server %d minute%s.",name, timep+PlayedTime[player], timep == 1 ? "" : "s"); // new console_print(id, "-----------------------------------------------------------------");
return PLUGIN_HANDLED; } public client_disconnect(id){ new name[32]
len += format(motd[len], 1023-len,"</body></font></pre>") show_motd(id, motd,"Top 15 Players By Time")
return PLUGIN_CONTINUE } public query(FailState, Handle:Query, Error[], Errcode){
} /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par } */
EDIT:-
i checked the code again and i think the problem from Played Time plugin.
simanovich
11-17-2013 13:56
Re: Played Time Dosen't Save Player's time
Check if you have write premissions in the database
PoLiCe
11-17-2013 14:06
Re: Played Time Dosen't Save Player's time
Quote:
Originally Posted by simanovich
(Post 2062070)
Check if you have write premissions in the database
Okay, so the problem isn't from the plugins? it's from the Database? :o
simanovich
11-17-2013 14:19
Re: Played Time Dosen't Save Player's time
Quote:
Originally Posted by PoLiCe
(Post 2062074)
Okay, so the problem isn't from the plugins? it's from the Database? :o
If it doesn't save even if it save before and plugin has no change, the database is the problem
PoLiCe
11-18-2013 06:35
Re: Played Time Dosen't Save Player's time
Quote:
Originally Posted by simanovich
(Post 2062080)
If it doesn't save even if it save before and plugin has no change, the database is the problem
Ok thanks, but how to Check write premissions in the database ?
simanovich
11-18-2013 08:21
Re: Played Time Dosen't Save Player's time
Quote:
Originally Posted by PoLiCe
(Post 2062301)
Ok thanks, but how to Check write premissions in the database ?
Make a test
PoLiCe
11-18-2013 09:41
Re: Played Time Dosen't Save Player's time
Quote:
Originally Posted by simanovich
(Post 2062338)
Make a test
check'd everything in Database, i couldn't find a problem in it or something that will block the plugin from updating the player's played time .. :/
Also, checked write premissions, as i said i can't find anything wrong in Database :(
Backstabnoob
11-18-2013 10:47
Re: Played Time Dosen't Save Player's time
Your (alka's) threaded query handler is useless, since it doesn't provide any information about the query whatsoever.
Code:
public query(FailState, Handle:Query, Error[], Errcode){}
You might want to check whether the query even executes:
Run the plugin for several hours and then check your logs. Post the results here.
PoLiCe
11-18-2013 11:14
Re: Played Time Dosen't Save Player's time
AMXX LOGS:
Code:
L 11/18/2013 - 14:54:59: -------- Mapchange to awp_india --------
L 11/18/2013 - 14:54:59: [SoloGunner_TEST.amxx] The day has changed! Resseting Ghost Activates
L 11/18/2013 - 14:55:32: [playedtime.amxx] --> Get 0 minutes for POLICE
L 11/18/2013 - 14:55:32: [playedtime.amxx] --> Got 0
L 11/18/2013 - 14:56:51: [playedtime.amxx] --> Get 1 minutes for POLICE
L 11/18/2013 - 14:56:52: -------- Mapchange to awp_india --------
L 11/18/2013 - 14:56:56: [playedtime.amxx] --> Get 1 minutes for POLICE
L 11/18/2013 - 14:56:56: [playedtime.amxx] --> Got 1
L 11/18/2013 - 14:57:37: [playedtime.amxx] --> Get 1 minutes for POLICE
L 11/18/2013 - 14:57:38: -------- Mapchange to awp_india --------
L 11/18/2013 - 14:57:38: [admin.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 14:57:38: [admin_sql.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 14:57:41: [playedtime.amxx] --> Get 1 minutes for POLICE
L 11/18/2013 - 14:57:41: [playedtime.amxx] --> Got 1
L 11/18/2013 - 15:01:47: [playedtime.amxx] --> Get 5 minutes for POLICE
L 11/18/2013 - 15:01:48: -------- Mapchange to awp_india --------
L 11/18/2013 - 15:01:48: [admin.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:01:48: [admin_sql.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:01:50: [playedtime.amxx] --> Get 5 minutes for POLICE
L 11/18/2013 - 15:01:50: [playedtime.amxx] --> Got 5
L 11/18/2013 - 15:02:15: [playedtime.amxx] --> Get 5 minutes for POLICE
L 11/18/2013 - 15:07:58: -------- Mapchange to awp_india --------
L 11/18/2013 - 15:08:05: [admin.amxx] Login: "POLICE1<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:08:05: [admin_sql.amxx] Login: "POLICE1<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:08:07: [playedtime.amxx] --> Get 0 minutes for POLICE1
L 11/18/2013 - 15:08:07: [playedtime.amxx] --> Got 0
L 11/18/2013 - 15:08:23: [playedtime.amxx] --> Get 0 minutes for POLICE1
L 11/18/2013 - 15:09:15: -------- Mapchange to awp_india --------
L 11/18/2013 - 15:09:21: [admin.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:09:21: [admin_sql.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:09:23: [playedtime.amxx] --> Get 15000 minutes for POLICE
L 11/18/2013 - 15:09:23: [playedtime.amxx] --> Got 15000
L 11/18/2013 - 15:09:35: [admincmd.amxx] Cmd: "POLICE<1><STEAM_0:1:76890948><>" changelevel "de_dust2"
L 11/18/2013 - 15:09:37: [playedtime.amxx] --> Get 15000 minutes for POLICE
L 11/18/2013 - 15:09:37: -------- Mapchange to de_dust2 --------
L 11/18/2013 - 15:09:37: [admin.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:09:37: [admin_sql.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:09:40: [playedtime.amxx] --> Get 15000 minutes for POLICE
L 11/18/2013 - 15:09:40: [playedtime.amxx] --> Got 15000
L 11/18/2013 - 15:09:58: [playedtime.amxx] --> Get 15000 minutes for POLICE
L 11/18/2013 - 15:09:59: [admin.amxx] Login: "POLICE<2><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:09:59: [admin_sql.amxx] Login: "POLICE<2><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:10:01: [playedtime.amxx] --> Get 15000 minutes for POLICE
L 11/18/2013 - 15:10:01: [playedtime.amxx] --> Got 15000
L 11/18/2013 - 15:11:58: [playedtime.amxx] --> Get 15001 minutes for POLICE
L 11/18/2013 - 15:11:59: -------- Mapchange to de_dust2 --------
L 11/18/2013 - 15:12:04: [admin.amxx] Login: "POLICE<3><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:12:04: [admin_sql.amxx] Login: "POLICE<3><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:12:06: [playedtime.amxx] --> Get 15001 minutes for POLICE
L 11/18/2013 - 15:12:06: [playedtime.amxx] --> Got 15001
L 11/18/2013 - 15:13:11: [playedtime.amxx] --> Get 15002 minutes for POLICE
L 11/18/2013 - 15:13:12: [admin.amxx] Login: "POLICE<4><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:13:12: [admin_sql.amxx] Login: "POLICE<4><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 15:13:14: [playedtime.amxx] --> Get 15002 minutes for POLICE
L 11/18/2013 - 15:13:14: [playedtime.amxx] --> Got 15002
L 11/18/2013 - 15:41:04: [playedtime.amxx] --> Get 15029 minutes for POLICE
L 11/18/2013 - 17:31:18: -------- Mapchange to de_dust2 --------
L 11/18/2013 - 17:31:30: [admin.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 17:31:30: [admin_sql.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 17:31:32: [playedtime.amxx] --> Get 15029 minutes for POLICE
L 11/18/2013 - 17:31:32: [playedtime.amxx] --> Got 15029
L 11/18/2013 - 17:33:41: [playedtime.amxx] --> Get 15031 minutes for POLICE
L 11/18/2013 - 17:33:42: [admin.amxx] Login: "POLICE<2><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 17:33:42: [admin_sql.amxx] Login: "POLICE<2><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 17:33:44: [playedtime.amxx] --> Get 15031 minutes for POLICE
L 11/18/2013 - 17:33:44: [playedtime.amxx] --> Got 15031
L 11/18/2013 - 17:39:48: [admincmd.amxx] Cmd: "POLICE<2><STEAM_0:1:76890948><>" changelevel "de_dust2"
L 11/18/2013 - 17:39:50: [playedtime.amxx] --> Get 15037 minutes for POLICE
L 11/18/2013 - 17:39:50: -------- Mapchange to de_dust2 --------
L 11/18/2013 - 17:39:50: [admin.amxx] Login: "POLICE<2><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 17:39:50: [admin_sql.amxx] Login: "POLICE<2><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 17:39:52: [playedtime.amxx] --> Get 15037 minutes for POLICE
L 11/18/2013 - 17:39:52: [playedtime.amxx] --> Got 15037
L 11/18/2013 - 17:40:07: [playedtime.amxx] --> Get 15037 minutes for POLICE
L 11/18/2013 - 17:45:10: -------- Mapchange to de_dust2 --------
L 11/18/2013 - 17:45:13: [admin.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 17:45:13: [admin_sql.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 17:45:15: [playedtime.amxx] --> Get 15037 minutes for POLICE
L 11/18/2013 - 17:45:15: [playedtime.amxx] --> Got 15037
L 11/18/2013 - 17:45:40: [admincmd.amxx] Cmd: "POLICE<1><STEAM_0:1:76890948><>" changelevel "de_dust2"
L 11/18/2013 - 17:45:42: [playedtime.amxx] --> Get 15037 minutes for POLICE
L 11/18/2013 - 17:45:42: -------- Mapchange to de_dust2 --------
L 11/18/2013 - 17:45:43: [admin.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 17:45:43: [admin_sql.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 17:45:45: [playedtime.amxx] --> Get 15037 minutes for POLICE
L 11/18/2013 - 17:45:45: [playedtime.amxx] --> Got 15037
L 11/18/2013 - 17:59:59: [admincmd.amxx] Cmd: "Counter Strike Default Server<0><><>" changelevel "de_inferno"
L 11/18/2013 - 18:00:01: [playedtime.amxx] --> Get 15051 minutes for POLICE
L 11/18/2013 - 18:00:01: -------- Mapchange to de_inferno --------
L 11/18/2013 - 18:00:01: [admin.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 18:00:01: [admin_sql.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 18:00:04: [playedtime.amxx] --> Get 15051 minutes for POLICE
L 11/18/2013 - 18:00:04: [playedtime.amxx] --> Got 15051
L 11/18/2013 - 18:00:47: [playedtime.amxx] --> Get 15051 minutes for POLICE
L 11/18/2013 - 18:00:48: [admin.amxx] Login: "POLICE<2><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 18:00:48: [admin_sql.amxx] Login: "POLICE<2><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 18:00:50: [playedtime.amxx] --> Get 15051 minutes for POLICE
L 11/18/2013 - 18:00:50: [playedtime.amxx] --> Got 15051
L 11/18/2013 - 18:07:39: [playedtime.amxx] --> Get 15057 minutes for POLICE
L 11/18/2013 - 18:09:26: [admin.amxx] Login: "POLICE<3><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 18:09:26: [admin_sql.amxx] Login: "POLICE<3><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 18:09:28: [playedtime.amxx] --> Get 15057 minutes for POLICE
L 11/18/2013 - 18:09:28: [playedtime.amxx] --> Got 15057
L 11/18/2013 - 18:09:39: [admincmd.amxx] Cmd: "POLICE<3><STEAM_0:1:76890948><>" changelevel "de_dust2"
L 11/18/2013 - 18:09:41: [playedtime.amxx] --> Get 15057 minutes for POLICE
L 11/18/2013 - 18:09:41: -------- Mapchange to de_dust2 --------
L 11/18/2013 - 18:09:42: [admin.amxx] Login: "POLICE<3><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 18:09:42: [admin_sql.amxx] Login: "POLICE<3><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 18:09:43: [playedtime.amxx] --> Get 15057 minutes for POLICE
L 11/18/2013 - 18:09:43: [playedtime.amxx] --> Got 15057
L 11/18/2013 - 18:12:01: [playedtime.amxx] --> Get 15059 minutes for POLICE
L 11/18/2013 - 18:12:01: -------- Mapchange to de_dust2 --------
L 11/18/2013 - 18:12:04: [playedtime.amxx] --> Get 15059 minutes for POLICE
L 11/18/2013 - 18:12:04: [playedtime.amxx] --> Got 15059
L 11/18/2013 - 18:55:52: [playedtime.amxx] --> Get 15102 minutes for POLICE
L 11/18/2013 - 19:05:37: -------- Mapchange to de_dust2 --------
L 11/18/2013 - 19:05:37: [playedtime.amxx] Query 2 executed. Data: { FailState: 0, Errcode: 0, Error: }
L 11/18/2013 - 19:05:49: [playedtime.amxx] --> Get 15102 minutes for POLICE
L 11/18/2013 - 19:05:49: [playedtime.amxx] --> Got 15102
L 11/18/2013 - 19:06:44: [playedtime.amxx] --> Get 15102 minutes for POLICE
L 11/18/2013 - 19:06:44: [playedtime.amxx] Query 1 executed. Data: { FailState: 0, Errcode: 0, Error: }
L 11/18/2013 - 19:06:44: -------- Mapchange to de_dust2 --------
L 11/18/2013 - 19:06:45: [playedtime.amxx] Query 8 executed. Data: { FailState: 0, Errcode: 0, Error: }
L 11/18/2013 - 19:06:45: [admin.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 19:06:45: [admin_sql.amxx] Login: "POLICE<1><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 19:06:47: [playedtime.amxx] --> Get 15102 minutes for POLICE
L 11/18/2013 - 19:06:47: [playedtime.amxx] --> Got 15102
L 11/18/2013 - 19:07:09: [playedtime.amxx] --> Get 15102 minutes for POLICE
L 11/18/2013 - 19:07:09: [playedtime.amxx] Query 8 executed. Data: { FailState: 0, Errcode: 0, Error: }
L 11/18/2013 - 19:07:11: [admin.amxx] Login: "POLICE<2><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 19:07:11: [admin_sql.amxx] Login: "POLICE<2><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 19:07:13: [playedtime.amxx] --> Get 15102 minutes for POLICE
L 11/18/2013 - 19:07:13: [playedtime.amxx] --> Got 15102
L 11/18/2013 - 19:07:54: [playedtime.amxx] --> Get 15102 minutes for POLICE
L 11/18/2013 - 19:07:54: [playedtime.amxx] Query 8 executed. Data: { FailState: 0, Errcode: 0, Error: }
L 11/18/2013 - 19:07:55: [admin.amxx] Login: "POLICE<3><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 19:07:55: [admin_sql.amxx] Login: "POLICE<3><STEAM_0:1:76890948><>" became an admin (account "STEAM_0:1:76890948") (access "abcdefghijklmnopqrstu") (address "192.168.1.14")
L 11/18/2013 - 19:07:57: [playedtime.amxx] --> Get 15102 minutes for POLICE
L 11/18/2013 - 19:07:57: [playedtime.amxx] --> Got 15102
L 11/18/2013 - 19:10:36: [playedtime.amxx] --> Get 15104 minutes for POLICE
L 11/18/2013 - 19:10:36: [playedtime.amxx] Query 1 executed. Data: { FailState: 0, Errcode: 0, Error: }
Backstabnoob
11-18-2013 11:49
Re: Played Time Dosen't Save Player's time
The data should be saved properly. Did you try checking the actual table using PHPMyAdmin or something like that to make sure it really doesn't save? The problem could also be in loading the data, instead of saving it.