13.02.2011, 11:56
Ok this is really weird.
As soon as I use this:
It works fine and a new file gets created in the mySQL database with another house.
But as soon as I had this:
The virtualworld and playerinterior... it doesn't safe a file, Someone can tell me why?
As soon as I use this:
Код:
format(Query, sizeof(Query), "INSERT INTO `houses` (houseID, HouseOwner, hX, hY, hZ) VALUES ('%d', '%s', %f, %f, %f)", random(250), pName(playerid), X, Y, Z);
But as soon as I had this:
Код:
format(Query, sizeof(Query), "INSERT INTO `houses` (houseID, HouseOwner, hX, hY, hZ, Virtualworld, Interior) VALUES ('%d', '%s', %f, %f, %f, %d, %d)", random(250), pName(playerid), X, Y, Z, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));