- 0
Furniture - problema
-
Similar Content
-
Problema turf
By Soryn.,
- 3 answers
- 227 views
-
- 1 reply
- 177 views
-
Problema
By ImJustSlim,
- 3 answers
- 285 views
-
- 2 replies
- 157 views
-
- 1 answer
- 310 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
HypCosmin
Salutare,
- Am adaugat un sistem de furniture luat dintr-un alt gamemode in gamemode-ul meu si pot spune ca functioneaza totul perfect mai putin o singura chestie. Adaug obiecte din comanda in jos acolo imi arata ca obiectul s-a creeat si salvat (imi arata gen 2/30 obiecte) dar dupa ce dau un restart la server si revin in /housemenu sau si daca adaug un alt obiect imi arata dinou 1/30... nu gasesc problema, oare ma poate ajuta si pe mine cineva? Multumesc si o seara faina
* Poze cu obiectele salvate
https://imgur.com/EFTrt6C
https://imgur.com/xUTcp9Y
* Poza dupa restart
https://imgur.com/VThxQae
https://imgur.com/EXGO6vc
pc SaveObject(const id) { format(query,sizeof(query),"UPDATE `fobjects` SET `Model`='%d', `X`='%f', `Y`='%f', `Z`='%f', `RotX`='%f', `RotY`='%f', `RotZ`='%f', `Virtual`='%d', `House`='%d' WHERE `ID`='%d'", FurnitureInfo[id][fiModel], FurnitureInfo[id][fiX], FurnitureInfo[id][fiY], FurnitureInfo[id][fiZ], FurnitureInfo[id][fiRotX], FurnitureInfo[id][fiRotY], FurnitureInfo[id][fiRotZ], FurnitureInfo[id][fiVirtual], FurnitureInfo[id][fiHouse], id); mysql_tquery(handle, query); return 1; }[/PHP] [PHP]stock GetHouseObjects(houseid) { new x; for(new i = 0; i != sizeof(FurnitureInfo); i++) { if(FurnitureInfo[i][fiHouse] == houseid) x++; } return x; }
and
format(strong,sizeof(strong), "{f9f7ce}Numele casei \t%s\n\ {f9f7ce}Chirie \t%s\n\ {f9f7ce}Casa inchisa \t%s\n\ {f9f7ce}Bani in casa \t%s$\n\ {f9f7ce}Materiale in casa \t%s\n\ {f9f7ce}Droguri in casa \t%s grame\n\ {f9f7ce}Mobilier casa \t%d/30 obiecte\n\ {f9f7ce}Editeaza mobilier", HouseInfo[h][hName],renttext,locktext,FormatNumber(HouseInfo[h][hSeif]),FormatNumber(HouseInfo[h][hMats]),FormatNumber(HouseInfo[h][hDrugs]), GetHouseObjects(PlayerInfo[playerid][pHouse])); ShowPlayerDialog(playerid, DIALOG_HM, DIALOG_STYLE_TABLIST, "{02901a}Meniu casa",strong, "Select", "Cancel");
si [pHouse] este Housekey
Edited by HypCosminam pus pozele
Link to comment
Share on other sites
2 answers to this question
Recommended Posts