Írtam egy /createhouse parancsot, minden tökéletesen mûködik benne, kivéve a mysql-be való mentés. Létrehozza a textlabel-t, létrehozza a pickupot, de nem menti el.
Mi lehet a hiba ? (ez kb a 20. változat, szóval lehet hogy ebbe már nagy hülyeségeket írtam..)
[pawn]stock CreateHouse(Float: EnterX, Float: EnterY, Float: EnterZ, Float: ExitX, Float: ExitY, Float: ExitZ, Interior, Ar)
{
new searchString[200];
for(new h = 1; h < MAX_HOUSES; h++)
{
   format(searchString, sizeof(searchString), \"SELECT * FROM `houses` WHERE houseID = %d\", h);
   mysql_query(searchString);
   mysql_store_result();
   if(mysql_num_rows() == 0)
   {
      new VW = 100000 + h;
      format(sqlString, sizeof(sqlString), \"INSERT INTO `houses` (`houseID` `EnterX`, `EnterY`, `EnterZ`, `ExitX`, `ExitY`, `ExitZ`, `Interior`, `VirtualWorld`, `Ar`) VALUES\");
      format(sqlString, sizeof(sqlString), \"%s (\'%d\', \'%f\', \'%f\', \'%f\', \'%f\', \'%f\', \'%f\', \'%d\', \'%d\', \'%d\', \'%d\')\", sqlString, h, EnterX, EnterY, EnterZ, ExitX, ExitY, ExitZ, Interior, VW, Ar);
      mysql_query(sqlString);
      format(HouseInfo[h][hTulaj], 24, \"None\");
      HouseInfo[h][hEnterX] = EnterX;
      HouseInfo[h][hEnterY] = EnterY;
      HouseInfo[h][hEnterZ] = EnterZ;
      HouseInfo[h][hExitX] = ExitX;
      HouseInfo[h][hExitY] = ExitY;
      HouseInfo[h][hExitZ] = ExitZ;
      HouseInfo[h][hInterior] = Interior;
      HouseInfo[h][hVirtualWorld] = VW;
      HouseInfo[h][hAr] = Ar;
      HouseInfo[h][hOwned] = -1;
      HouseInfo[h][hPickup] = CreatePickup(1273, 1, EnterX, EnterY, EnterZ, 0);
      format(houseString, sizeof(houseString), \"Eladó Ház [%d]\\nÁra: %d$\", h, HouseInfo[h][hAr]);
      format(HouseInfo[h][hSzoveg], 50, \"%s\", houseString);
      HouseInfo[h][hTextSzoveg] = Create3DTextLabel(houseString, 0x33AA33AA, EnterX, EnterY, EnterZ, 40.0, 0);
      break;
   }
}
}[/pawn]