NeverUsedID
Well-Known Member
998 ? that one is bugged, you should use 999. Or did the hiveext.dll rewrite your request ?
ahh sry. wrong logentry. tried both 999 and 998. same error.
Okay, solved the error:
i need "?:[%1]:" %1 without questionmarksyntax throws the error.
Code:
diag_log ("executing Changeowner Mysqlcommand...");
//_key = format["CHILD:999:UPDATE `instance_deployable` SET `owner_id` = %1 WHERE `unique_id` = %2",_survivorID,_objectUID];
//working, but replaces ALL ownerids in instances_deployable:
_key = format["CHILD:999:UPDATE `instance_deployable` SET `owner_id` = ?:[%1]: WHERE `unique_id` = ?:[%2]:",_survivorID,_objectUID];
diag_log ("HIVE: WRITE: ChangedOwner "+ str(_key));
_result = _key call server_hiveReadWrite;
diag_log ("HIVE: WRITE: ChangedOwner result "+ str(_result));
But now it updates ALL items in instance_deployable.
LOG:
013-05-25 18:55:08 HiveExt: [Information] Method: 999 Params: UPDATE `instance_deployable` SET `owner_id` = ?:[101]:WHERE `unique_id` = ?:[98606189280335]:
2013-05-25 18:55:08 HiveExt: [Information] Result: ["CustomStreamStart",0]