pomoc = Pickup

Započeo [CH]°°LøpεȤ°°[4EVER], Jul 15, 2010, 15:41:42 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

evo imam jedan problem ali neznam ga rijesiti
sada da krenemo
napravim koriditane i to sve ok uzmem x,y,z pos i onda idem
AddStaticPickup(1239, 2, x, y, z);
i compilam udem u igru nema tog pickupa :S kako da to rijesim mozda sam premasio maximum 0.3 verzije ali nezz stvarno sta je to

EDIT:sada sam skonto sa ovim:
     for(new h = 184; h < sizeof(CarInfo); h++)
{
AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
}
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
    if(HouseInfo[h][hEntrancex] != 0.000000 && HouseInfo[h][hEntrancey] != -1550.349243 && HouseInfo[h][hEntrancez] != 90.334503)
    {
    format(PropertyString,sizeof(PropertyString),"Kuca je na Prodaju\n Cijena: %d$ \n Opis: %s \n Level: %d", HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0xFFFF00AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}
if(HouseInfo[h][hOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"Vlasnik kuce %s\n Cijena Renta: %d$ \n Opis: %s \n Koristite /rentroom da iznajmite sobu", HouseInfo[h][hOwner], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
    HouseLabel[h] = Create3DTextLabel(PropertyString ,0xFFFF00AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
    format(PropertyString,sizeof(PropertyString),"Biznis je na Prodaju\n Cijena: %d$ \n Level: %d \n Koristite /buybiz da kupite biznis", BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = Create3DTextLabel(PropertyString ,0xFFFF00AA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
}
else if(BizzInfo[h][bOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s\n Suvlasnik: %s \n Cijena Ulaza: %d$. \n Koristite /enter da udete.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
BizzLabel[h] = Create3DTextLabel(PropertyString ,0xFFFF00AA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
  }
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);;
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"Biznis je na Prodaju\n Cijena: %d$ \n Level: %d \n Koristite /buybiz da kupite biznis", SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = Create3DTextLabel(PropertyString ,0xFFFF00AA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30, 0, 1);
}
else if(SBizzInfo[h][sbOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"s \n Vlasnik: %s\n Suvlasnik: %s \n Cijena Ulaza: %d$. \n Koristite /enter da udete.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], BizzInfo[h][bEntranceCost]);
SBizzLabel[h] = Create3DTextLabel(PropertyString ,0xFFFF00AA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30, 0, 1);
        }
}

Nema kuca,a sa ovim ima:
   for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
AddStaticPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
if(BizzInfo[h][bOwned] == 1)
{
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
if(SBizzInfo[h][sbOwned] == 1)
{
AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
}

Pliz pomazite
Poslednja Izmena: Jul 15, 2010, 16:52:29 POSLE PODNE od °°[NG]Skillz°°

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....

CitatScript Property      Max Limit
Players     500
Vehicles     2000
Vehicle Models     Unlimited *
Global Objects     254
Per-Player Objects     254
Virtual Worlds     2,147,483,647
Map Icons     100
Race Checkpoints     1
Checkpoints     1
Script Property     Dynamic Limit
Pickups     2048
3D Labels Global     1024
3D Labels Per-player     1024
Chat Bubble String     144 characters
Gangzones     1024
Menus     128
Server Property     Limit
Gamemodes     16
Filterscripts     16
Text I/O     128 cells (512 bytes)
Name Length     20 characters.
Textdraws     Limit
String Length     1024 characters
Shown In A Single Client's Screen     92
Created Serverwise     2048

Neznam bas da si promasio, tesko :).. neznam u cemu bi to bilo :S.. probaj s streamerom pickupe :D
Aequam memento rebus in arduis servare mentem.

aj praobaj nest ti izjebat tu xD ti si bolji scripter a zelim imat to na kucama :S

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....

Eto vidi sta bude na mojem updateu 2.0 pa napravi tako :D..

#define MAX_HOUSES NEKI_BROJ_NPR_500

new HousePickup[MAX_HOUSES];
new Text3D:HouseLabel[MAX_HOUSES];

na pocetku OnGameMode

new PropertyString[128];

for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
    format(PropertyString,sizeof(PropertyString),"Kuca na prodaju! \n ID: %d \n Cijena: $%d \n Opis: %s \n Level: %d",HouseInfo[h][hWorld], HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
if(HouseInfo[h][hOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"Kucu posjeduje: %s \n ID: %d \n Rent: $%d \n Opis: %s \n Da rentante: /rentroom", HouseInfo[h][hOwner],HouseInfo[h][hWorld], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
HousePickup[h] = CreateDynamicPickup(1272, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}


Zanemari hworld jer sumnjam da ti to imas

EDIT: Mozes koristiti OnPropTextdrawUpdate, dok kupis kucu itd.. znaci ubacis van nekog callbacka ovo:

forward OnPropTextdrawUpdate();

public OnPropTextdrawUpdate()
{
new PropertyString[128];
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
    if(HouseInfo[h][hEntrancex] != 0.000000 && HouseInfo[h][hEntrancey] != -1250.349243 && HouseInfo[h][hEntrancez] != 78.334503)
    {
        Delete3DTextLabel(HouseLabel[h]);
    format(PropertyString,sizeof(PropertyString),"Kuca na prodaju! \n ID: %d \n Cijene: $%d \n Opis: %s \n Level: %d",HouseInfo[h][hWorld], HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}
else if(HouseInfo[h][hOwned] == 1)
{
    Delete3DTextLabel(HouseLabel[h]);
format(PropertyString,sizeof(PropertyString),"Kucu posjeduje %s \n ID: %d \n Rent: $%d \n Opis: %s \n Da rentate: /rentroom", HouseInfo[h][hOwner],HouseInfo[h][hWorld], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
    Delete3DTextLabel(BizzLabel[h]);
    format(PropertyString,sizeof(PropertyString),"Firma na prodaju! \n ID: %d \n Cijena: $%d \n Level: %d \n Da kupite: /buybiz", BizzInfo[h][bVirWorld], BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
}
else if(BizzInfo[h][bOwned] == 1)
{
    Delete3DTextLabel(BizzLabel[h]);
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s \n ID: %d \n Reket: %s \n Cijena ulaza: $%d. \n Da udete, /enter.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bVirWorld], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
BizzLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
    Delete3DTextLabel(SBizzLabel[h]);
format(PropertyString,sizeof(PropertyString),"Firma na prodaju! \n Cijena: $%d \n Level: %d \n Da kupite, /buybiz", SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30, 0, 1);
}
else if(SBizzInfo[h][sbOwned] == 1)
{
    Delete3DTextLabel(SBizzLabel[h]);
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s \n Reket: %s \n Cijena ulaza: $%d. \n Da udete, /enter.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], BizzInfo[h][bEntranceCost]);
SBizzLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30, 0, 1);
}
}
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cSetted] == 1)
{
    if(CarInfo[h][cOwned] == 0)
    {
        Delete3DTextLabel(CarLabel[h]);
    format(PropertyString,sizeof(PropertyString),"Vozilo na prodaju! \n Model: %s \n ID: %d \n Cijena: $%d",CarInfo[h][cDescription],h,CarInfo[h][cValue]);
    CarLabel[h] = Create3DTextLabel(PropertyString ,0x008080AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
Attach3DTextLabelToVehicle(CarLabel[h],h,0,0,0);
}
else
{
Delete3DTextLabel(CarLabel[h]);
}
}
}
return 1;
}


Ako me kuzis sta ti pokusavam reci, dok igrac kuca /buyhouse u komandi ovo stavis OnPropTextdrawUpdate(); poslije OnPropUpdate();

I da, ono gore je moj OnPropTextdrawUpdate, ti si ga modificiraj naravno..
Poslednja Izmena: Jul 15, 2010, 17:12:08 POSLE PODNE od LuKsA
Aequam memento rebus in arduis servare mentem.

Citat: LuKsA poslato Jul 15, 2010, 17:05:28 POSLE PODNE
Eto vidi sta bude na mojem updateu 2.0 pa napravi tako :D..

#define MAX_HOUSES NEKI_BROJ_NPR_500

new HousePickup[MAX_HOUSES];
new Text3D:HouseLabel[MAX_HOUSES];

na pocetku OnGameMode

new PropertyString[128];

for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
    format(PropertyString,sizeof(PropertyString),"Kuca na prodaju! \n ID: %d \n Cijena: $%d \n Opis: %s \n Level: %d",HouseInfo[h][hWorld], HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
if(HouseInfo[h][hOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"Kucu posjeduje: %s \n ID: %d \n Rent: $%d \n Opis: %s \n Da rentante: /rentroom", HouseInfo[h][hOwner],HouseInfo[h][hWorld], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
HousePickup[h] = CreateDynamicPickup(1272, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}


Zanemari hworld jer sumnjam da ti to imas
Ok Hvala :D

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....

Procitaj i edit, dobro ti dode ;)
Aequam memento rebus in arduis servare mentem.

Znam Hvala na svemu bar neko oce pomoc :D
Hvala i chrisu pomogo na MSN-u

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....

Pa jel rjeseno sad da lockamo?

kuce da xD sada moram jos i bizeve :D
EDIT:Moze lock skonto sam ;D
Poslednja Izmena: Jul 15, 2010, 17:39:54 POSLE PODNE od °°[NG]Skillz°°

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....