Health shows 100.000000
#4

Thanks, is it a bad idea to do this?:

pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:health, query[500], pname[24];
    GetPlayerName(playerid, pname, 24);
    GetPlayerHealth(playerid, health);
    PlayerInfo[playerid][pHealth] = health;
    format(query, sizeof(query), "UPDATE playerdata SET Health=%f WHERE Username='%s'",
    PlayerInfo[playerid][pHealth],
    pname);
    mysql_query(query);
    return 1;
}
Reply


Messages In This Thread
Health shows 100.000000 - by AphexCCFC - 10.02.2013, 23:08
Re: Health shows 100.000000 - by zDevon - 10.02.2013, 23:13
Re: Health shows 100.000000 - by Jefff - 10.02.2013, 23:28
Re: Health shows 100.000000 - by AphexCCFC - 10.02.2013, 23:32
Re: Health shows 100.000000 - by MP2 - 10.02.2013, 23:35
Re: Health shows 100.000000 - by AphexCCFC - 10.02.2013, 23:38
Re: Health shows 100.000000 - by zDevon - 10.02.2013, 23:39
Re: Health shows 100.000000 - by AphexCCFC - 10.02.2013, 23:41
Re: Health shows 100.000000 - by AphexCCFC - 10.02.2013, 23:47
Re: Health shows 100.000000 - by zDevon - 10.02.2013, 23:50

Forum Jump:


Users browsing this thread: 2 Guest(s)