SQLite & sscanf2 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SQLite & sscanf2 (
/showthread.php?tid=547087)
SQLite & sscanf2 -
yellow - 20.11.2014
Hey guys,
with MySQL you can use following code to load sth.
Код:
while(mysql_fetch_row_format(result, "|"))
{
sscanf(result, "p<|>is[30]s[30]iiiiiiifiiiiis[30]",...
Is there a way to use this code with SQLite? There are just a few natives which you can use with SQLite, so i actually don't know if this is possible.
-Greetz
AW: SQLite & sscanf2 -
yellow - 22.11.2014
/push
Re: SQLite & sscanf2 -
Raweresh - 22.11.2014
Sorry, but it's impossible.
Re: SQLite & sscanf2 -
Jefff - 22.11.2014
You can do similar but with loop 'do while'
AW: SQLite & sscanf2 -
yellow - 22.11.2014
Okay, gonna try it. Thanks for now
Re: SQLite & sscanf2 -
Mic_H - 22.11.2014
https://sampwiki.blast.hk/wiki/MySQL#mysql_fetch_row_format
But ur format wont work 100% because of the strings.
AW: SQLite & sscanf2 -
yellow - 23.11.2014
That code was just an example how you could do it with MySQL. I didn't test it & I don't use it