03.07.2012, 15:42
There is no "easy" way to convert it. File-based systems like INI and SQL-based systems use completely different ways to read/write data. If you have knowledge of both you can (with some common sense) convert all the functions but it will still take time (a lot, depending on your script).
Example:
Could be converted to:
But there is really no "easy" way of converting this since it's really hard to predict what query translates to what INI-command and visa-versa.
Example:
pawn Code:
ini_write("data", "value", file); // Don't know if it's the correct syntax, just an example
pawn Code:
UPDATE file SET data = 'value'