[Pomoc] nece da radi komanda /setbizz

Započeo [BE:RP]Dzoni, Maj 03, 2013, 15:06:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Dfire v2.4.3
Detaljan opis problema: kad udjem InGame kad stanem blizu nekog objekta i kucam /setbizz nista se ne pojavljuje
Dio skripte:

CMD:setbizz(playerid,params[])
{
new string[512 char], sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
new houseid = -1;
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(PlayerInfo[playerid][Admin] >= 5)
{
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bSetted] == 1)
{
houseid = h + 1;
}
}

if(BizzInfo[houseid][bSetted] == 0)
{
new string2[256];
new Kucajtee;
format(string, sizeof(string),"server uklonjen!RP/Bizzes/%d.ini",houseid);
dini_Create(string);
if(sscanf(params, "i", Kucajtee))
{
SCM(playerid, COLOR_GRAD2, "Koriscenje: /setbizz [kucajte]");
SCM(playerid, COLOR_GRAD2, "Kucajte: 0 (Cluckin Bell) - 1 (Burger Shoot) - 2 (Pizza Stack) - 3 (Donut Shop) - 4 (24-7) - 5 (Strip Club) - 6 (Bar) - 7 (Gym)");
SCM(playerid, COLOR_GRAD2, "Kucajte: 8 (Sex Shop) - 9 (Binco) - 10 (Ammunation) - 11 (Disco) - 12 (Restaurant) - 13 (ZIP) - 14(Victom) - 15 (Sub Urban) - 16 (Trafika) - 17 (Prodavnica Mobilni Telefona)");
return 1;
}
if(Kucajtee == 0) // Cluckin
{
BizzInfo[houseid][bExitX] = 365.server uklonjen!96;
BizzInfo[houseid][bExitY] = -9.169898;
BizzInfo[houseid][bExitZ] = 1001.851623;

BizzInfo[houseid][bBuyPrice] = 325000;
BizzInfo[houseid][bLevelNeeded] = 6;
BizzInfo[houseid][bInterior] = 9;
BizzInfo[houseid][bInteriorNr] = 20;

strmid(BizzInfo[houseid][bMessage],"Cluckin' Bell",0,strlen("Cluckin' Bell"),255);
}
else if(Kucajtee == 1) // Burger
{
BizzInfo[houseid][bExitX] = 363.217712;
BizzInfo[houseid][bExitY] = -74.911697;
BizzInfo[houseid][bExitZ] = 1001.507812;

BizzInfo[houseid][bBuyPrice] = 325000;
BizzInfo[houseid][bLevelNeeded] = 6;
BizzInfo[houseid][bInterior] = 10;
BizzInfo[houseid][bInteriorNr] = 21;

strmid(BizzInfo[houseid][bMessage],"Burger Shoot",0,strlen("Burger Shoot"),255);
}
else if(Kucajtee == 2) // Pizza
{
BizzInfo[houseid][bExitX] = 372.411712;
BizzInfo[houseid][bExitY] = -130.457702;
BizzInfo[houseid][bExitZ] = 1001.492187;

BizzInfo[houseid][bBuyPrice] = 325000;
BizzInfo[houseid][bLevelNeeded] = 6;
BizzInfo[houseid][bInterior] = 5;
BizzInfo[houseid][bInteriorNr] = 22;

strmid(BizzInfo[houseid][bMessage],"Pizza Shop",0,strlen("Pizza Shop"),255);
}
else if(Kucajtee == 3) // Donut
{
BizzInfo[houseid][bExitX] = 377.172393;
BizzInfo[houseid][bExitY] = -193.304504;
BizzInfo[houseid][bExitZ] = 1000.632812;

BizzInfo[houseid][bBuyPrice] = 350000;
BizzInfo[houseid][bLevelNeeded] = 6;
BizzInfo[houseid][bInterior] = 17;
BizzInfo[houseid][bInteriorNr] = 30;

strmid(BizzInfo[houseid][bMessage],"Donut Shop",0,strlen("Donut Shop"),255);
}
else if(Kucajtee == 4) // 24-7
{
if(nextshop == 1)
{
BizzInfo[houseid][bExitX] = -25.132600;
BizzInfo[houseid][bExitY] = -139.067001;
BizzInfo[houseid][bExitZ] = 1003.546875;
BizzInfo[houseid][bInterior] = 16;

nextshop ++;
}
else if(nextshop == 2)
{
BizzInfo[houseid][bExitX] = -28.261899;
BizzInfo[houseid][bExitY] = -31.767400;
BizzInfo[houseid][bExitZ] = 1003.546875;
BizzInfo[houseid][bInterior] = 4;

nextshop ++;
}
else if(nextshop == 3)
{
BizzInfo[houseid][bExitX] = -27.391899;
BizzInfo[houseid][bExitY] = -58.252899;
BizzInfo[houseid][bExitZ] = 1003.546875;
BizzInfo[houseid][bInterior] = 6;

nextshop ++;
}
else if(nextshop == 4)
{
BizzInfo[houseid][bExitX] = -30.929899;
BizzInfo[houseid][bExitY] = -92.011398;
BizzInfo[houseid][bExitZ] = 1003.546875;
BizzInfo[houseid][bInterior] = 18;

nextshop = 1;
}

BizzInfo[houseid][bBuyPrice] = 350000;
BizzInfo[houseid][bLevelNeeded] = 5;
BizzInfo[houseid][bInteriorNr] = 12;

strmid(BizzInfo[houseid][bMessage],"24-7",0,strlen("24-7"),255);
}
else if(Kucajtee == 5) // Pig Pen
{
BizzInfo[houseid][bExitX] = 1204.846191;
BizzInfo[houseid][bExitY] = -13.852100;
BizzInfo[houseid][bExitZ] = 1000.921875;

BizzInfo[houseid][bBuyPrice] = 385000;
BizzInfo[houseid][bLevelNeeded] = 8;
BizzInfo[houseid][bInterior] = 2;
BizzInfo[houseid][bInteriorNr] = 17;

strmid(BizzInfo[houseid][bMessage],"Strip Club",0,strlen("Strip Club"),255);
}
else if(Kucajtee == 6) // Bar
{
BizzInfo[houseid][bExitX] = 501.870788;
BizzInfo[houseid][bExitY] = -67.582000;
BizzInfo[houseid][bExitZ] = 998.757812;

BizzInfo[houseid][bBuyPrice] = 350000;
BizzInfo[houseid][bLevelNeeded] = 6;
BizzInfo[houseid][bInterior] = 11;
BizzInfo[houseid][bInteriorNr] = 26;

strmid(BizzInfo[houseid][bMessage],"Bar",0,strlen("Bar"),255);
}
else if(Kucajtee == 7) // Gym
{
BizzInfo[houseid][bExitX] = 772.359375;
BizzInfo[houseid][bExitY] = -5.515697;
BizzInfo[houseid][bExitZ] = 1000.728576;

BizzInfo[houseid][bBuyPrice] = 400000;
BizzInfo[houseid][bLevelNeeded] = 8;
BizzInfo[houseid][bInterior] = 5;
BizzInfo[houseid][bInteriorNr] = 15;

strmid(BizzInfo[houseid][bMessage],"Gym",0,strlen("Gym"),255);
}
else if(Kucajtee == 8) // Sex Shop
{
BizzInfo[houseid][bExitX] = -100.295700;
BizzInfo[houseid][bExitY] = -24.654399;
BizzInfo[houseid][bExitZ] = 1000.718811;

BizzInfo[houseid][bBuyPrice] = 350000;
BizzInfo[houseid][bLevelNeeded] = 5;
BizzInfo[houseid][bInterior] = 3;
BizzInfo[houseid][bInteriorNr] = 34;

strmid(BizzInfo[houseid][bMessage],"Sex Shop",0,strlen("Sex Shop"),255);
}
else if(Kucajtee == 9) // Binco
{
BizzInfo[houseid][bExitX] = 207.766204;
BizzInfo[houseid][bExitY] = -111.266296;
BizzInfo[houseid][bExitZ] = 1005.132812;

BizzInfo[houseid][bBuyPrice] = 600000;
BizzInfo[houseid][bLevelNeeded] = 8;
BizzInfo[houseid][bInterior] = 15;
BizzInfo[houseid][bInteriorNr] = 16;

strmid(BizzInfo[houseid][bMessage],"Binco",0,strlen("Binco"),255);
}
else if(Kucajtee == 10) // Ammunation
{
BizzInfo[houseid][bExitX] = 315.762786;
BizzInfo[houseid][bExitY] = -143.661193;
BizzInfo[houseid][bExitZ] = 999.601623;

BizzInfo[houseid][bBuyPrice] = 750000;
BizzInfo[houseid][bLevelNeeded] = 10;
BizzInfo[houseid][bInterior] = 7;
BizzInfo[houseid][bInteriorNr] = 14;

strmid(BizzInfo[houseid][bMessage],"Ammunation",0,strlen("Ammunation"),255);
}
else if(Kucajtee == 11) // Disco
{
BizzInfo[houseid][bExitX] = 493.439300;
BizzInfo[houseid][bExitY] = -24.916900;
BizzInfo[houseid][bExitZ] = 1000.671875;

BizzInfo[houseid][bBuyPrice] = 350000;
BizzInfo[houseid][bLevelNeeded] = 6;
BizzInfo[houseid][bInterior] = 17;
BizzInfo[houseid][bInteriorNr] = 18;

strmid(BizzInfo[houseid][bMessage],"Disco",0,strlen("Disco"),255);
}
else if(Kucajtee == 12) // Restaurant
{
BizzInfo[houseid][bExitX] = 460.265411;
BizzInfo[houseid][bExitY] = -88.611503;
BizzInfo[houseid][bExitZ] = 999.554687;

BizzInfo[houseid][bBuyPrice] = 300000;
BizzInfo[houseid][bLevelNeeded] = 5;
BizzInfo[houseid][bInterior] = 4;
BizzInfo[houseid][bInteriorNr] = 38;

strmid(BizzInfo[houseid][bMessage],"Restaurant",0,strlen("Restaurant"),255);
}
else if(Kucajtee == 13) // ZIP
{
BizzInfo[houseid][bExitX] = 161.410293;
BizzInfo[houseid][bExitY] = -96.687202;
BizzInfo[houseid][bExitZ] = 1001.804687;

BizzInfo[houseid][bBuyPrice] = 600000;
BizzInfo[houseid][bLevelNeeded] = 8;
BizzInfo[houseid][bInterior] = 18;
BizzInfo[houseid][bInteriorNr] = 36;

strmid(BizzInfo[houseid][bMessage],"ZIP",0,strlen("ZIP"),255);
}
else if(Kucajtee == 14) // Victim
{
BizzInfo[houseid][bExitX] = 227.342803;
BizzInfo[houseid][bExitY] = -8.243800;
BizzInfo[houseid][bExitZ] = 1002.210876;

BizzInfo[houseid][bBuyPrice] = 600000;
BizzInfo[houseid][bLevelNeeded] = 8;
BizzInfo[houseid][bInterior] = 5;
BizzInfo[houseid][bInteriorNr] = 37;

strmid(BizzInfo[houseid][bMessage],"Victim",0,strlen("Victim"),255);
}
else if(Kucajtee == 15) // Suburban
{
BizzInfo[houseid][bExitX] = 203.895294;
BizzInfo[houseid][bExitY] = -50.656700;
BizzInfo[houseid][bExitZ] = 1001.804687;

BizzInfo[houseid][bBuyPrice] = 600000;
BizzInfo[houseid][bLevelNeeded] = 8;
BizzInfo[houseid][bInterior] = 1;
BizzInfo[houseid][bInteriorNr] = 35;

strmid(BizzInfo[houseid][bMessage],"Sub urban",0,strlen("Sub urban"),255);
}
else if(Kucajtee == 16) // Trafika
{
BizzInfo[houseid][bExitX] = 203.895294;
BizzInfo[houseid][bExitY] = -50.656700;
BizzInfo[houseid][bExitZ] = 1001.804687;

BizzInfo[houseid][bBuyPrice] = 45000;
BizzInfo[houseid][bLevelNeeded] = 4;
BizzInfo[houseid][bInterior] = 0;
BizzInfo[houseid][bInteriorNr] = 35;
BizzInfo[houseid][bTrafika] = 1;

strmid(BizzInfo[houseid][bMessage],"Trafika",0,strlen("Trafika"),255);
}
else if(Kucajtee == 17) // Prodavnica mobilnih
{
BizzInfo[houseid][bExitX] = 1554.3765;
BizzInfo[houseid][bExitY] = 101.8853;
BizzInfo[houseid][bExitZ] = 977.2898;

BizzInfo[houseid][bBuyPrice] = 200000;
BizzInfo[houseid][bLevelNeeded] = 8;
BizzInfo[houseid][bInterior] = 0;
BizzInfo[houseid][bInteriorNr] = 0;
BizzInfo[houseid][bMobilni] = 1;

strmid(BizzInfo[houseid][bMessage],"Prodavnica Mobilnih Telefona",0,strlen("Prodavnica Mobilnih Telefona"),255);
   }

BizzInfo[houseid][bEntranceX] = X;
BizzInfo[houseid][bTill] = 5000;
BizzInfo[houseid][bEntranceY] = Y;
BizzInfo[houseid][bEntranceZ] = Z;
BizzInfo[houseid][bVirWorld] = houseid;
BizzInfo[houseid][bSetted] = 1;
BizzInfo[houseid][bProducts] = 500;
BizzInfo[houseid][bMaxProducts] = 500;
BizzInfo[houseid][bPriceProd] = 50;

EvaluateBizz(houseid);

strmid(BizzInfo[houseid][bOwner],"Drzava",0,strlen("Drzava"),255);
strmid(BizzInfo[houseid][bExtortion],"////",0,strlen("////"),255);

format(string, sizeof(string),"* Created the bizz number %d. The bizz was set automatically, Use /edit to edit it if you want.",houseid);
SCM(playerid, COLOR_LIGHTBLUE, string);

format(string,sizeof(string),"[ADMIN]: %s Has Set Bizz: [%d]'s entrance to [%f - %f - %f].",sendername,houseid,X,Y,Z);
ABroadCast(COLOR_LIGHTRED,string, 5);

format(string2,sizeof(string2),"{00FF00}Biznis nema Vlasnika! \n {FFFF00}%s \n {00FF00}ID Biznisa: {FFFF00}%d \n {00FF00}Cena: {FFFF00}$%d \n {00FF00}Potreban Level: {FFFF00}%d \n {00FF00}Da bi kupili biznis kucajte {FFFF00}/buybiz",BizzInfo[houseid][bMessage],houseid, BizzInfo[houseid][bBuyPrice],BizzInfo[houseid][bLevelNeeded]);
BizzLabel[houseid] = CreateDynamic3DTextLabel(string2 ,0xFFFFFFAA,X,Y,Z,7);
BizzPickup[houseid] = CreateDynamicPickup(1274,1,X,Y,Z,-1);

OnPropUpdate(2,houseid);
OnPropTextdrawUpdate(2, houseid);

SCM(playerid, COLOR_GREY,"* The label will appear on next server restart due to limit of labels!");

new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Set the bizz %d.",d,m,y,h,mi,s,sendername,houseid);
AdminLog(string);
}
else SCM(playerid, COLOR_GREY, "* ERROR: Automatic detected Bizzid already setted!");
}
else SCM(playerid, COLOR_GRAD1, "** Niste ovlasceni da koristite ovu komandu!");
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): /





Poslednja Izmena: Maj 03, 2013, 15:44:29 POSLE PODNE od BliZZZZard
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

I da,sad sam vidio i jos mi kaze da je nepostojeca komanda da pogledam /help ili /askq,molim vas moze pomoc?
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

izvini te zbog spama,al evo i /unsetbizz

CMD:unsetbizz(playerid,params[])
{
new string[512 char], houseid, sendername[MAX_PLAYER_NAME],giveplayer[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(sscanf(params, "i", houseid)) return SCM(playerid, COLOR_GRAD2, "Koriscenje: /unsetbizz [bizzid]");
if(PlayerInfo[playerid][Admin] >= 5)
{
if(houseid >= 0 && houseid <= sizeof(BizzInfo))
{
if(BizzInfo[houseid][bSetted] == 1)
{
BizzInfo[houseid][bSetted] = 0;

Delete3DTextLabel(BizzLabel[houseid]);
DestroyDynamicPickup(BizzPickup[houseid]);

OnPropUpdate(2,houseid);

foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pBizKey] == houseid)
{
SafeGivePlayerMoney(i, BizzInfo[houseid][bBuyPrice]);
PlayerInfo[i][pBizKey] = 9999;
}
else
{
format(string, sizeof(string),"BliZZardRP/Users/%s.ini",BizzInfo[houseid][bOwner]);
new totalcash = dini_Int(string,"Money") + BizzInfo[houseid][bBuyPrice];
dini_IntSet(string,"Money",totalcash);
dini_IntSet(string,"Bizz",9999);
}
}
}

format(string, sizeof(string),"* Destroyed the bizz number %d. This bizz is now unset.",houseid);
SCM(playerid, COLOR_LIGHTBLUE, string);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Un-Set the bizzid %s.",d,m,y,h,mi,s,sendername,giveplayer,houseid);
AdminLog(string);
}
else
{
SCM(playerid, COLOR_GREY, "* This bizz isn't setted!");
return 1;
}
}
else SCM(playerid, COLOR_GREY, "* ID Must not go above 500 and below 0");
}
else SCM(playerid, COLOR_GRAD1, "** Niste ovlasceni da koristite ovu komandu!");
return 1;
}
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

OCe li mi neko pomoci?
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

jesi je stavio na kraj skripte?
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

pa pazi /setbizz mi je od 70502 do 70843 pa onda ide sethouse koji radi pa mi ide /unsetbizz od 71069 do 71126  s citava skripta mi ima 106786 linija,sta da radim?
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

Citat: BliZZZZard poslato Maj 03, 2013, 18:03:44 POSLE PODNE
pa pazi /setbizz mi je od 70502 do 70843 pa onda ide sethouse koji radi pa mi ide /unsetbizz od 71069 do 71126  s citava skripta mi ima 106786 linija,sta da radim?

pa kopiraj na kraj, neznam mozda si ih stavio pod ovaj callback OnPlayerCommandText
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

A jeste,dje da je stavim cek stavljam i setbizz i unsetbizz  ?
Poslednja Izmena: Maj 03, 2013, 18:14:25 POSLE PODNE od BliZZZZard
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

Citat: BliZZZZard poslato Maj 03, 2013, 18:11:45 POSLE PODNE
A jeste,dje da je stavim cek stavljam i setbizz i unsetbizz  ?
na kraj skripte iza svega
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

Kaze ukucali ste nepostojecu komandu,opet ne radi, i stavio sam na kraj skripte skroz,sta da radim?
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

Stavio sam na kraj skripte ali nece,kaze mi da ta komanda nepostoji
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

Kako da sredim to da mi radi,moze li mi ko pomoc?
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

?
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

u komandi proveravas ovu varijablu bSetted, da li je ti settujes biznisima na 0, kada ih pokusavas kreirati, tacnije, da li je ta varijabla postavljena na 0 svim nepostojecim biznisima(nadam se da shvatas pitanje)

Pojasni malo bolje ne razumes sta oces da kazes
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;