[Help] MySQL variables in text.
#1

Hello,

i'm busy making my own gamemode with mysql, i'm new with this. i'm trying to fetch data from a database and than use them ingame

i have this code :
Код:
mysql_get_field("cash", Field);
PlayerInfo[playerid][pCash] = strval(Field);
Now i get a good result in numbers but i cant get them in a text like :
Код:
format(message, 256, "You have $ : %s", PlayerInfo[playerid][pCash]);
SendClientMessage(playerid, COLOR_WHITE, message);
but than i get a empty value than.

Please help me with this.
Reply


Messages In This Thread
[Help] MySQL variables in text. - by Kastranova - 24.07.2010, 11:06
Re: [Help] MySQL variables in text. - by armyoftwo - 24.07.2010, 11:37
Re: [Help] MySQL variables in text. - by Kastranova - 24.07.2010, 11:45
Re: [Help] MySQL variables in text. - by Kastranova - 24.07.2010, 12:17

Forum Jump:


Users browsing this thread: 2 Guest(s)