[Help] mysql loading accounts - 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: [Help] mysql loading accounts (
/showthread.php?tid=302211)
[Help] mysql loading accounts -
tony_fitto - 07.12.2011
Hey guys,
I just decided to change mysql plugin since my last one didn't work as it should do.
Anyways I changed to
BlueG's Mysql Plugin
And I wonder if anyone know how to load Floats, Ints and Strings from the DB
I made it like this
Ints
pawn Код:
mysql_fetch_field_row("pInGame", DataString);
PlayerInfo[playerid][pInGame] = strval(DataString);
Floats
pawn Код:
mysql_fetch_float("pHealth", DataString);
PlayerInfo[playerid][pHealth] = floatstr(DataString);
Strings
pawn Код:
mysql_fetch_field_row("pMarriedTo", DataString);
format(PlayerInfo[playerid][pMarriedTo], 128, "%s", DataString);
But I get some werd error...
I would be really glad if some one could help me out here.
-Thanks for all help!
Re: [Help] mysql loading accounts -
Tigerkiller - 07.12.2011
show us your code and what errors you get.
so we are able to help you