07.12.2011, 21:10
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
Floats
Strings
But I get some werd error...
I would be really glad if some one could help me out here.
-Thanks for all help!
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);
pawn Код:
mysql_fetch_float("pHealth", DataString);
PlayerInfo[playerid][pHealth] = floatstr(DataString);
pawn Код:
mysql_fetch_field_row("pMarriedTo", DataString);
format(PlayerInfo[playerid][pMarriedTo], 128, "%s", DataString);
I would be really glad if some one could help me out here.
-Thanks for all help!