26.07.2012, 11:10
Hey guys! I have the following script snippet:
But it creates a file with the name "1" but not "2" etc, it basically rewrites the first file.
Any ideas?
Код:
new h; while (h < sizeof(HouseInfo)) { new randvir = 2 + random(1999999); new Float:x, Float:y, Float:z; new Float:a; GetPlayerPos(playerid,x,y,z); HouseInfo[h][hX] = x; HouseInfo[h][hY] = y; HouseInfo[h][hZ] = z; HouseInfo[h][hA] = a; HouseInfo[h][hDes] = name; HouseInfo[h][hPrice] = price; HouseInfo[h][hWorld] = randvir; HouseInfo[h][hRent] = 0; HouseInfo[h][hOwner] = 0; HouseInfo[h][hOwned] = 0; SaveHouses(h); h++; return 1; }
Any ideas?