17.06.2018, 11:35
So, I built a housing system now and everything seems to work like a charm on my local server. When I upload it to any host, I get a problem.
This is the part of my code loading data from the database:
And this is mysql debugging:
This is my debugging command:
So this is my debug result:
The Exterior 'X' co-ordinate seems to be modified at a point which is no-where on my code. It's not modified in the local test server, but happens to be modified in a host.
This is the part of my code loading data from the database:
pawn Код:
mysql_fetch_row_format(Kweri);
sscanf(Kweri, "e<p<|>iiis[24]iiiiffffff>", HouseInfo[i]);
mysql_free_result();
pawn Код:
[13:23:39] CMySQLHandler::FetchRow() - Return: 1|1|1500000|[IM]Matt|0|1|0|2|-2574|1152.09|55.7266|225.705|1022.71|1084.01
[13:23:39] >> mysql_free_result( Connection handle: 1 )
[13:23:39] CMySQLHandler::FreeResult() - Result was successfully free'd.
pawn Код:
CMD:coords(playerid, params[])
{
new id;
if(sscanf(params, "i", id)) return SendClientMessage(playerid, -1, "ID please..");
SendFMessage(playerid, -1, "House ID: %i, House Owned: %i, House Price: $%i", HouseInfo[id][HouseID], HouseInfo[id][hOwned], HouseInfo[id][hPrice]);
SendFMessage(playerid, -1, "Owner: %s, Locked: %i, World ID: %i", HouseInfo[id][hOwner], HouseInfo[id][hLocked], HouseInfo[id][hWorld]);
SendFMessage(playerid, -1, "Money: $%i, Interior type: %i", HouseInfo[id][hStoredMoney], HouseInfo[id][hInteriorID]);
SendFMessage(playerid, -1, "Exterior; X: %f, Y: %f, Z: %f", HouseInfo[id][OutX], HouseInfo[id][OutY], HouseInfo[id][OutZ]);
SendFMessage(playerid, -1, "Interior; X: %f, Y: %f, Z: %f", HouseInfo[id][IntX], HouseInfo[id][IntY], HouseInfo[id][IntZ]);
return 1;
}
The Exterior 'X' co-ordinate seems to be modified at a point which is no-where on my code. It's not modified in the local test server, but happens to be modified in a host.