help with sscanf -.-
#1

K... so I've got a little problem...
I'm not familar with sscanf at all and I also don't get it really when i read the tut...
so I tried:
pawn Код:
new dat[256], string[100], Float:x, Float:y, Float:z;
GetPlayerName(playerid, name, sizeof(name));
format(dat, sizeof(dat), "SELECT x, y, z FROM User WHERE `Name`='%s'", name);
mysql_query(dat),
mysql_store_result();
sscanf(dat, "p<|>fff",x, y, z);
format(string, sizeof(string), "%f,%f,%f", x, y, z);
SendClientMessage(playerid, GREY, string);
mysql_free_result();
however it always shows "0.000, 0.000, 0.000"... it shoud show some other floats (yes the floats in the db aren't 0,0,0).
Reply


Messages In This Thread
help with sscanf -.- - by Sascha - 18.01.2011, 15:04
Re: help with sscanf -.- - by JaTochNietDan - 18.01.2011, 15:08
Re: help with sscanf -.- - by Sascha - 18.01.2011, 15:17
Re: help with sscanf -.- - by JaTochNietDan - 18.01.2011, 15:21
Re: help with sscanf -.- - by Sascha - 18.01.2011, 15:36

Forum Jump:


Users browsing this thread: 3 Guest(s)