25.03.2016, 15:00
Quote:
Instead of execution intervals, you should just add transaction functions.
Like, StartPVarQuery and EndPVarQuery (I can't think of better names atm). StartPVarQuery would start a 'BEGIN' query, and EndPVarQuery would be 'COMMIT'. |
Example:
Code:
SavePVar(playerid, "Test"); // The execute interval has started // New variables added (query isn't executed) SavePVar(playerid, "Test2"); SavePVar(playerid, "Test3"); SavePVar(playerid, "Test4"); // After 'X' seconds (say 2 secs), the query is executed and result is free!