[Help] mysql loading accounts
#1

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!
Reply
#2

show us your code and what errors you get.
so we are able to help you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)