3xTaSY Posted April 22, 2014 Report Share Posted April 22, 2014 Deci, n-am nicio idee cum as putea face o comanda pentru creeat o casa in punctul in care ma aflu. Stock-ul este mai jos.stock AH(hi,Float:iconX,Float:iconY,Float:iconZ,Float:interiorX,Float:interiorY,Float:interiorZ,Costa,Sella,Interiora) { //-------------------------------------------------------------------------- new house[128], string[128]; format(house, sizeof(house), "Houses/hi%d",hi); //-------------------------------------------------------------------------- if(!dini_Exists(house)) { dini_Create(house); format(hInfo[hi][Name], 24, "ForSale"); dini_Set(house, "Name", "ForSale"); format(hInfo[hi][Renter], 24, "ForRent"); dini_Set(house, "Renter", "ForRent"); hInfo[hi][Rentable] = 0; dini_IntSet(house, "Rentable", 0); hInfo[hi][Rentcost] = 0; dini_IntSet(house, "Rentcost", 0); hInfo[hi][Cost] = Costa; dini_IntSet(house, "Cost", Costa+00000); hInfo[hi][Sell] = Sella; dini_IntSet(house, "Sell", Sella); hInfo[hi][Interior] = Interiora; dini_IntSet(house, "Interior", Interiora); hInfo[hi][Virtualworld] = hi; dini_IntSet(house, "Locked", 1); hInfo[hi][InteriorX] = interiorX; hInfo[hi][InteriorY] = interiorY; hInfo[hi][InteriorZ] = interiorZ; dini_FloatSet(house, "X", interiorX); dini_FloatSet(house, "Y", interiorY); dini_FloatSet(house, "Z", interiorZ); dini_IntSet(house, "RentPay", 0); dini_IntSet(house, "RentGet", 0); hInfo[hi][Locked] = 1; print("-"); print("-------------(House Created)-------------"); printf("> Hello, %d", hi); printf("> Buy Cost: %d", Costa+0000); printf("> Sell Cost: %d", Sella); printf("> Interior: %d", Interiora); printf("> VirtualWorld: %d", hi); print("-----------------------------------------"); print("-"); } else { format(hInfo[hi][Name], 24, dini_Get(house, "Name")); format(hInfo[hi][Renter], 24, dini_Get(house, "Renter")); hInfo[hi][Rentable] = dini_Int(house, "Rentable"); hInfo[hi][Rentcost] = dini_Int(house, "Rentcost"); hInfo[hi][Cost] = dini_Int(house, "Cost"); hInfo[hi][Sell] = dini_Int(house, "Sell"); hInfo[hi][Interior] = dini_Int(house, "Interior"); hInfo[hi][Locked] = dini_Int(house, "Locked"); hInfo[hi][InteriorX] = dini_Float(house, "X"); hInfo[hi][InteriorY] = dini_Float(house, "Y"); hInfo[hi][InteriorZ] = dini_Float(house, "Z"); hInfo[hi][Virtualworld] = dini_Int(house, "Virtualworld"); } //-------------------------------------------------------------------------- hInfo[hi][iconx] = iconX; hInfo[hi][icony] = iconY; hInfo[hi][iconz] = iconZ; format(house, sizeof(house), "Houses/hi%d",hi); //-------------------------------------------------------------------------- if(strcmp(hInfo[hi][Name],"ForSale",true) == 0) { HousePickup[hi] = CreatePickup(19135, 23, iconX, iconY, iconZ); } else { HousePickup[hi] = CreatePickup(19135, 23, iconX, iconY, iconZ); } format(string, sizeof(string), "{FFFF00}Owner: {33FF33}%s\n{FFFF00}House Cost: {33FF33}%i {FF0000}Coins", hInfo[hi][Name], hInfo[hi][Cost]); housei[hi] = Create3DTextLabel(string, red, iconX, iconY, iconZ, 90.0, 0, 0); }As ramane recunoscator celui care ma ajuta sa fac acea comanda :D Link to comment Share on other sites More sharing options...
Punct. Posted April 22, 2014 Report Share Posted April 22, 2014 Respecta modelul.. Nu mai deschideti in pu*a mea servere de SA:MP ! Jucati-va pe cele care sunt ! Sunt suficiente ! Reguli de bun simt: 1. Nu faceti reclama unde nu trebuie ! 2. Nu injurati ca la usa cortului ! 3. Daca esti analfabeti, taci din gura ! 4. Nu abuza de 'scuze', 'din greseala' ! My work ::: http://pastebin.com/VRNRcaAs Link to comment Share on other sites More sharing options...
WopsS Posted April 22, 2014 Report Share Posted April 22, 2014 Respect modelul!http://www.sa-mp.ro/forum/index.php?topic=31017.0 Link to comment Share on other sites More sharing options...
Question
3xTaSY
Deci, n-am nicio idee cum as putea face o comanda pentru creeat o casa in punctul in care ma aflu. Stock-ul este mai jos.
As ramane recunoscator celui care ma ajuta sa fac acea comanda :D
Link to comment
Share on other sites
2 answers to this question
Recommended Posts