15.12.2015, 15:39
Okay so the problem still exist
It inserts everything correctly besides WHERE ID
If I print out the houseid like this
it will give you the correct House ID, but inserting into SQL gives different results
PHP код:
[17:34:41] UPDATE `houses` SET `HouseName`='name', `Price`=1000, `EnterX`=132.729, `EnterY`=-1491.53, `EnterZ`=18.766, `ExitX`= 0.0, `ExitY`=0.0, `ExitZ`=0.0, `VirtualWorld`=8826, `InteriorID`=1,`Owned`=1, `Garage`=0, `Locked`=0, `HouseBank`=0,`Owner`='Test_Account',`FurnitureToken`=0,`MasterID`=1 WHERE `ID`=0
If I print out the houseid like this
PHP код:
format(string,sizeof(string),"You have purchased a house, server ID: %i for %i$",HouseInfo[x][HID],HouseInfo[x][HousePrice]);
SendClientMessage(playerid,COLOR_GREEN,string);