[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 3 gostiju pregledaju ovu temu.

ova varijabla bSetted, je l je postavljena na 0 ?

Ne znam brate
ja sam naso ovo sto si ti pito,pa vidi je li ok ,sta treba jos da stavim ?


bSetted,  //3418 linija u mom gamemodu

BizzInfo[idx][bSetted] = dini_Int(file,"Setted");  //30788 linija u mom gamemodu

// pa imam ovo 38101 do 39144 linija

for(new h = 0; h < sizeof(BizzInfo); h++)
{
    if(BizzInfo[h][bSetted] == 1)
    {
if(BizzInfo[h][bOwned] == 0)
{
    format(PropertyString,sizeof(PropertyString),"{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[h][bMessage], BizzInfo[h][bVirWorld], BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0xFFFFFFAA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],7);
}
else if(BizzInfo[h][bOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"{0000FF}%s \n {00FFFF}Vlasnik: {00FFFF}%s \n {2B60DE}ID Biznisa: {00FFFF}%d \n {2B60DE}Reket: {00FFFF}%s \n {2B60DE}Cena Ulaza: {00FFFF}$%d \n {2B60DE}Da bi usli kucajte {00FFFF}/enter",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bVirWorld], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0xFFFFFFAA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],7);
}
BizzPickup[h] = CreateDynamicPickup(1274,1,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],-1);
}
}
for(new h = 0; h < sizeof(sBizzInfo); h++)
{
if(sBizzInfo[h][sbOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"{00FF00}SBizz nema Vlasnika! \n {FFFF00}%s \n {00FF00}Cena: {FFFF00}$%d \n {00FF00}Potreban Level: {FFFF00}%d \n {00FF00}Da bi kupili kucajte {FFFF00}/buybiz",sBizzInfo[h][sbMessage], sBizzInfo[h][sbBuyPrice], sBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0xFFFFFFAA,sBizzInfo[h][sbEntranceX], sBizzInfo[h][sbEntranceY], sBizzInfo[h][sbEntranceZ],7);
}
else if(sBizzInfo[h][sbOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"{00FFFF}%s \n {2B60DE}Vlasnik: {00FFFF}%s \n {2B60DE}Reket: {00FFFF}%s \n {2B60DE}Cena Ulaza: {00FFFF}$%d. \n {2B60DE}Da bi usli kucajte {00FFFF}/enter",sBizzInfo[h][sbMessage],sBizzInfo[h][sbOwner], sBizzInfo[h][sbExtortion], BizzInfo[h][bEntranceCost]);
          SBizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0xFFFFFFAA,sBizzInfo[h][sbEntranceX], sBizzInfo[h][sbEntranceY], sBizzInfo[h][sbEntranceZ],7);
}
}
for(new i = 0; i < sizeof(BurgerDriveIn); i++)
{
    BurgerPickUp[i] = CreateDynamicPickup(1239, 23, BurgerDriveIn[i][0], BurgerDriveIn[i][1], BurgerDriveIn[i][2], 0);
pickups++;
}
for(new i = 0; i < sizeof(ChickenDriveIn); i++)
{
    ChickenPickUp[i] = CreateDynamicPickup(1239, 23, ChickenDriveIn[i][0], ChickenDriveIn[i][1], ChickenDriveIn[i][2], 0);
pickups++;
}
for(new h = 0; h < sizeof(InfoPickups); h++)
{
CreateDynamic3DTextLabel("[INFO] \n Pritisnite \"SPACE\" da bi dobili vise informacija \n o pickup-u",0x008080AA, InfoPickups[h][0],InfoPickups[h][1],InfoPickups[h][2], 5);
}

// pa imam ovo na 41165 do 41198

}
else if(update == 2)
{
    format(file, sizeof(file),"RapidRP/Bizzes/%d.ini",idx);
if(dini_Exists(file))
{
    if(BizzInfo[idx][bSetted] == 1)
    {
dini_IntSet(file,"Owned",BizzInfo[idx][bOwned]);
dini_Set(file,"Owner",BizzInfo[idx][bOwner]);
dini_Set(file,"Message",BizzInfo[idx][bMessage]);
dini_Set(file,"ExtortionBy",BizzInfo[idx][bExtortion]);
dini_FloatSet(file,"Entrance_X",BizzInfo[idx][bEntranceX]);
dini_FloatSet(file,"Entrance_Y",BizzInfo[idx][bEntranceY]);
dini_FloatSet(file,"Entrance_Z",BizzInfo[idx][bEntranceZ]);
dini_FloatSet(file,"Exit_X",BizzInfo[idx][bExitX]);
dini_FloatSet(file,"Exit_Y",BizzInfo[idx][bExitY]);
dini_FloatSet(file,"Exit_Z",BizzInfo[idx][bExitZ]);
        dini_IntSet(file,"LevelNeeded",BizzInfo[idx][bLevelNeeded]);
        dini_IntSet(file,"Price",BizzInfo[idx][bBuyPrice]);
        dini_IntSet(file,"EntranceCost",BizzInfo[idx][bEntranceCost]);
        dini_IntSet(file,"Till",BizzInfo[idx][bTill]);
        dini_IntSet(file,"Locked",BizzInfo[idx][bLocked]);
        dini_IntSet(file,"Interior",BizzInfo[idx][bInterior]);
        dini_IntSet(file,"Products",BizzInfo[idx][bProducts]);
        dini_IntSet(file,"MaxProducts",BizzInfo[idx][bMaxProducts]);
        dini_IntSet(file,"ProductPrice",BizzInfo[idx][bPriceProd]);
        dini_IntSet(file,"VirtualWorld",BizzInfo[idx][bVirWorld]);
        dini_IntSet(file,"InteriorNr",BizzInfo[idx][bInteriorNr]);
        dini_IntSet(file,"Setted",BizzInfo[idx][bSetted]);
dini_IntSet(file,"Trafika",BizzInfo[idx][bTrafika]);
dini_IntSet(file,"Mobilni",BizzInfo[idx][bMobilni]);
}
else

// pa ovo open na 53714
BizzInfo[idx][bSetted] = dini_Int(file,"Setted");

// i onda ide ovo sto sam vam poslao na kraju skripte i tamp na pocetku pise isto  ovo if(BizzInfo[idx][bSetted] == 1)  if(BizzInfo[h][bOwned] == 0)
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

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

Rijeseno,moze LOCK!
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

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