Getting Coordinates from MySQL
#1

So all I want to do is get some x,y,z coordinates from a table from mysql and use it in a command such as SetPlayerPos(). Right now I'm doing this:

pawn Код:
mysql_get_field("x",string); coordx=floatstr(string);
mysql_get_field("y",string); coordy=floatstr(string);
mysql_get_field("z",string); coordz=floatstr(string);
SetPlayerPos(playerid, coordx, coordy, coordz);
Is there a simpler way of doing this?
Reply
#2

Don't You call that simple?

Dude, What You want? "LoadPos." and it will fix it?
Reply
#3

You can fetch whole resultline and split it with sscanf.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)