14.03.2011, 13:20
Ey, I use Incognito plugin streamer.
It always works fantastic, but now I change my pickups to the dynamic pickup function.
And this is what happends,
When I use LoadHouses(); in my gamemode, it successfully load all my houses.
But after this it doesn't load the other stuff in ongamemode.
I show you my loadhouses() public
Something wrong here?
It always works fantastic, but now I change my pickups to the dynamic pickup function.
And this is what happends,
When I use LoadHouses(); in my gamemode, it successfully load all my houses.
But after this it doesn't load the other stuff in ongamemode.
I show you my loadhouses() public
Код:
public LoadHouses() { new pickup; new housebought,housenumber,houseinterior,houseprice,houselock,Float:Ent[3],Float:Ext[3],ownername[26]; mysql_query("SELECT * FROM `houses`"); mysql_store_result(); printf("%d houses loaded",mysql_num_rows()); if(mysql_num_rows() > 0) { while(mysql_fetch_row(HouseQuery)) { sscanf(HouseQuery, "p<|>ddffffffddds[26]", housenumber, housebought, Ent[0], Ent[1], Ent[2], Ext[0], Ext[1], Ext[2], houseinterior, houseprice, houselock, ownername); if(housebought == 1) pickup = CreateDynamicPickup(1272,23,Ent[0],Ent[1],Ent[2],-1,-1,-1,PICKUP_DISTANCE); else pickup = CreateDynamicPickup(1273,23,Ent[0],Ent[1],Ent[2],-1,-1,-1,PICKUP_DISTANCE); PickupType[pickup] = HousePickup; hStats[pickup][HouseNumber] = housenumber; if(hStats[pickup][HouseNumber] != 0) { hStats[pickup][HouseBought] = housebought; hStats[pickup][EntX] = Ent[0]; hStats[pickup][EntY] = Ent[1]; hStats[pickup][EntZ] = Ent[2]; hStats[pickup][ExtX] = Ext[0]; hStats[pickup][ExtY] = Ext[1]; hStats[pickup][ExtZ] = Ext[2]; format(hStats[pickup][Owner] ,sizeof(ownername),ownername); hStats[pickup][HouseInterior] = houseinterior; hStats[pickup][HousePrice] = houseprice; hStats[pickup][HouseLock] = houselock; } } } mysql_free_result(); return 1; }