mysql 0,0,0 pos
#1

this code will give back 0,0,0 position

Код:
			if(!strcmp(option2, "interior", true))
			{
				new Float:pos[3];
        		GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
        		new interior = GetPlayerInterior(playerid);
				mysql_format(SQL_CONNECTION, query, sizeof(query), "UPDATE Business SET InteriorX = %f, InteriorY = %f, InteriorZ = %f, Interior = %f WHERE SQLID = %d LIMIT 1",
												pos[0],
												pos[1],
												pos[2],
												interior,
												Business[playerid][SQLID]);
				//mysql_tquery(SQL_CONNECTION, query, "GetBizID", "i", playerid);

				mysql_tquery(SQL_CONNECTION, query);
				SendClientMessage(playerid, COLOR_GREEN, "> Biznisz frissнtve!");
				ReloadBiz();
			}
Reply
#2

bump
Reply
#3

you try to save biz pos ? or what you cant do?
Reply
#4

First thing I'd check is that the coord tables in the database are actually floats...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)