Another way to load data from MySQL? - 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: Another way to load data from MySQL? (
/showthread.php?tid=486819)
Another way to load data from MySQL? -
Brandon_More - 10.01.2014
I am using this way:
( This is just one variable to load )
pawn Код:
while(mysql_fetch_row_format(query,"|"))
{
mysql_fetch_field_row(savingstring, "bank");
PlayerInfo[playerid][bank] = strval(savingstring);
}
It works when you login with barely nothing set on account.. but when you set your account fully it dosen't load data.
Since I have just started with MySQL, I was wondering if there is a better way to load data? there is around 82 variables to load (Integer | Strings | Floats)
Respuesta: Another way to load data from MySQL? -
JustBored - 10.01.2014
Try with threaded querys (BlueG plugin.)
Re: Another way to load data from MySQL? -
Koveljko - 10.01.2014
Use sscanf to load data from Mysql, that's the best way for me.