#include "ff_inc_action" void main() { // Actions reproduire sur tous les joueurs actifs du moment SQLExecDirect("SELECT Action,OnlyOnce,Date,DelayFromLoad,Value1,Value2 FROM logactions WHERE Id=-1");// Actions a etendre a tous les joueurs actifs while (SQLLocalFetch()==SQL_SUCCESS) { string sSQL = ",'"+SQLLocalEatData()+"',"+SQLLocalEatData()+",'"+SQLLocalEatData()+"',"+SQLLocalEatData()+",'"+SQLLocalEatData()+"','"+SQLLocalEatData()+"')"; AssignCommand(GetModule(),SubRun(sSQL)); } SQLExecDirect("SELECT Action,DelayFromLoad,Value1,Value2 FROM logactions WHERE Id=0 AND Date<=NOW()");// Actions du module while (SQLLocalFetch()==SQL_SUCCESS) {//SQLDecodeSpecialChars( string Action = SQLLocalEatData(); float DelayFromLoad = StringToFloat(SQLLocalEatData()); string Value1 = SQLDecodeSpecialChars(SQLLocalEatData()); string Value2 = SQLDecodeSpecialChars(SQLLocalEatData()); AssignCommand(GetModule(),DelayCommand(DelayFromLoad, RunIt(Action, Value1, Value2))); } SQLExecDirect("DELETE FROM logactions WHERE (Id=0 AND Date<=NOW() AND OnlyOnce=1) OR (Id=-1)");// Actions du module }