• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Help with sqlite floats
#8
oh, you have to put the variables itself into the query so you do:

Code:
GetPlayerPos(playerid, Player[playerid][X], Player[playerid][Y], Player[playerid][Z]);



// THIS

GetPlayerHealth(playerid, Player[playerid][Health]);

GetPlayerArmour(playerid, Player[playerid][Armour]);



format(Query,sizeof(Query),"UPDATE `USERS` SET TEAM = '%d', SKIN = '%d', MONEY = '%d', SCORE = '%d', HEALTH = '%f', ARMOUR = '%f', X = '%f', Y = '%f', Z = '%f' WHERE `NAME` = '%s' COLLATE NOCASE",

Player[playerid][Team],

Player[playerid][Skin],

GetPlayerMoney(playerid),//

GetPlayerScore(playerid),//

Player[playerid][Health],// AND THEN THIS

Player[playerid][Armour],// THIS TOO

Player[playerid][X],//

Player[playerid][Y],//

Player[playerid][Z],//

DB_Escape(name));

db_query(Database, Query);
  Reply


Messages In This Thread
Help with sqlite floats - by Turk54721 - 2021-04-11, 12:12 PM
RE: Help with sqlite floats - by DandoRYx - 2021-04-11, 01:52 PM
RE: Help with sqlite floats - by Turk54721 - 2021-04-11, 03:12 PM
RE: Help with sqlite floats - by DandoRYx - 2021-04-11, 03:43 PM
RE: Help with sqlite floats - by Turk54721 - 2021-04-11, 04:49 PM
RE: Help with sqlite floats - by DandoRYx - 2021-04-11, 06:08 PM
RE: Help with sqlite floats - by Turk54721 - 2021-04-11, 06:43 PM
RE: Help with sqlite floats - by DandoRYx - 2021-04-11, 06:56 PM
RE: Help with sqlite floats - by Turk54721 - 2021-04-11, 07:46 PM
RE: Help with sqlite floats - by Turk54721 - 2021-04-12, 06:48 AM
RE: Help with sqlite floats - by DandoRYx - 2021-04-12, 01:17 PM
RE: Help with sqlite floats - by Turk54721 - 2021-04-12, 04:41 PM
RE: Help with sqlite floats - by DandoRYx - 2021-04-14, 03:30 PM
RE: Help with sqlite floats - by Turk54721 - 2021-04-16, 07:59 AM

Forum Jump: