this my code.
Code
private ["_time1","_time2","_query"];
_query = format["SELECT p_time FROM players WHERE p_time='%1'",_time1];
waitUntil{!DB_Async_Active};
_queryResult = [_query,2] call DB_fnc_asyncCall;
if(_time1 > 0) then
{
_time2 = _time1 - 1;
};
_query = format["UPDATE players SET p_time='%1'",_time2];
waitUntil {sleep (random 0.3); !DB_Async_Active};
[_query,2] call DB_fnc_asyncCall;
Alles anzeigen
I'm trying to make query.
Example : 1. script read p_time column from all players.
2. script subtract "1"
3. script write in p_time new value
(300-1=299)
p_time FOR all players.
But my code write "0" to all players
What i do wrong? Help me please.
altis life 3.1.4.8 extdb2