24.02.2014, 11:37
I would've done it like this:
You can then call the function like this: updateCar(ScriptCarInfo[car]);
pawn Код:
function updateCar(carEnum) {
format(str, sizeof(str), "UPDATE `TableName` SET `OwnerName`='%s', `OwnerID` = %d, `PosX` = %f", carEnum[OwnerName], carEnum[OwnerID], carEnum[PosX]);
execute_query(str);
}