Diddl3s 13 Report post Posted July 6, 2016 (edited) Hello, (Apologies if this is in the wrong section) I'm trying to update the poptabs on the database that are earned with exilez. The poptabs increase on zombie kill perfectly but wont update in the database. A player can force the update by dropping their poptabs on the ground etc... and picking them back up. Can someone please help me to figure it out? This is the latest thing I have tried (that doesn't work): // Set client's respect and money _playerObj setVariable ["ExileScore", _respect]; _playerObj setVariable ["ExileMoney", _money, true]; ExileClientPlayerScore = _respect; (owner _playerObj) publicVariableClient "ExileClientPlayerScore"; ExileClientPlayerScore = nil; // Update client database entry format["setAccountMoneyRespect:%1:%2", _respect, (getPlayerUID _playerObj)] call ExileServer_system_database_query_fireAndForget; format['setAccountMoneyRespect:%1:%2', _money, _playerObj getVariable ["ExileDatabaseID", 0]] call ExileServer_system_database_query_fireAndForget; Any help is appreciated Edited July 9, 2016 by Diddl3s Added solved tags Share this post Link to post Share on other sites
IT07 419 Report post Posted July 6, 2016 ExileServer_system_trading_network_purchaseVehicleRequest.sqf, line 71-72: _playerObject setVariable ["ExileMoney", _playerMoney, true]; format["setPlayerMoney:%1:%2", _playerMoney, _playerObject getVariable ["ExileDatabaseID", 0]] call ExileServer_system_database_query_fireAndForget; Share this post Link to post Share on other sites
B.A.D. 46 Report post Posted July 7, 2016 even with setplayermoney it doesnt update instantly,but the next time you do something poptab related like dropping/taking. thats what it does for me. Share this post Link to post Share on other sites
xtr3m3 19 Report post Posted July 8, 2016 @B.A.D. format["setPlayerMoney:%1:%2", _money, _playerObj getVariable ["ExileDatabaseID", 0]] call ExileServer_system_database_query_fireAndForget; _playerObject vs _playerObj The Code above is working for me Share this post Link to post Share on other sites
Diddl3s 13 Report post Posted July 9, 2016 Worked perfectly for me guys, thank you ever so much for the help The database now updates on each kill, cheers! Share this post Link to post Share on other sites