[pomoc] 3D na kucama

Započeo sampzone, Maj 28, 2011, 13:39:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

mod koji ja korisitm: BU

problem: ja sam iz cybera kopirao 3D label na kucama i dodao sam pod if(strcmp(cmd, "/buyhouse", true) == 0) komandu
new LocationZone[MAX_ZONE_NAME];
                        Get2DZone(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey],LocationZone,MAX_ZONE_NAME);
                        format(string1, sizeof(string1), "[KUCA]\nVlasnik: %s\nOpis: %s\nRentabilno: %s\nAdresa: %s",HouseInfo[h][hOwner],HouseInfo[h][hDiscription],text,LocationZone);
                        Update3DTextLabelText(housesale[h],0x0087AFFF,string1);

i dodao sam pod public LoadProperty() ovo
}
new text[50];
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hRentabil] == 1) { text="Da"; }
else if(HouseInfo[h][hRentabil] == 0) { text="Ne"; }
        if(HouseInfo[h][hOwned] == 0)
        {
            new LocationZone[MAX_ZONE_NAME];
            Get2DZone(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey],LocationZone,MAX_ZONE_NAME);
            format(string1, sizeof(string1), "[KUCA]\n Cijena: %d$\nOpis: %s\nAdresa: %s",HouseInfo[h][hValue],HouseInfo[h][hDiscription],LocationZone);
            housesale[h] = Create3DTextLabel(string1,0x0087AFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20,0,1);
            pickups++;
        }
        if(HouseInfo[h][hOwned] == 1)
        {
        new LocationZone[MAX_ZONE_NAME];
            Get2DZone(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey],LocationZone,MAX_ZONE_NAME);
            format(string1, sizeof(string1), "[KUCA]\nVlasnik: %s\nOpis: %s\nRentabilno: %s\nAdresa: %s",HouseInfo[h][hOwner],HouseInfo[h][hDiscription],text,LocationZone);
            housesale[h] = Create3DTextLabel(string1,0x0087AFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20,0,1);
            pickups++;
        }

i izbaci mi ove errore :

C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11100) : error 017: undefined symbol "MAX_ZONE_NAME"
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11100) : error 009: invalid array size (negative, zero or out of bounds)
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11100) : error 036: empty statement
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11100) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

11100 red je:
new LocationZone[MAX_ZONE_NAME];


evo sad 6 errora
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11100) : error 001: expected token: "-identifier-", but found ";"
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11101) : error 017: undefined symbol "Get2DZone"
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11102) : error 017: undefined symbol "string1"
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11102) : error 017: undefined symbol "string1"
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11102) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11102) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.

11100 red je:
new LocationZone[MAX_ZONE_NAME];

11101 red je:
Get2DZone(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey],LocationZone,MAX_ZONE_NAME);

11102 red je:
format(string1, sizeof(string1), "[KUCA]\n Cijena: %d$\nOpis: %s\nAdresa: %s",HouseInfo[h][hValue],HouseInfo[h][hDiscription],LocationZone);

a da stavis new string1[128]; ?
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √


ouuuuuuu maj faking gad, pa tu dje si radio skriptu bogati
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √


                        new string1[256];
                       Get2DZone(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey]);
                       format(string1, sizeof(string1), "[KUCA]\nVlasnik: %s\nOpis: %s\nRentabilno: %s",HouseInfo[h][hOwner],HouseInfo[h][hDiscription],text);
                       Update3DTextLabelText(housesale[h],0x0087AFFF,string1);



}
new text[50];
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hRentabil] == 1) { text="Da"; }
else if(HouseInfo[h][hRentabil] == 0) { text="Ne"; }
       if(HouseInfo[h][hOwned] == 0)
       {
           
           Get2DZone(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey]);
           format(string1, sizeof(string1), "[KUCA]\n Cijena: %d$\nOpis: %s",HouseInfo[h][hValue],HouseInfo[h][hDiscription]);
           housesale[h] = Create3DTextLabel(string1,0x0087AFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20,0,1);
           pickups++;
       }
       if(HouseInfo[h][hOwned] == 1)
       {
        new LocationZone[MAX_ZONE_NAME];
           Get2DZone(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey],);
           format(string1, sizeof(string1), "[KUCA]\nVlasnik:    %s\nOpis:%s\nRentabilno:%s",HouseInfo[h][hOwner],HouseInfo[h][hDiscription],text);
           housesale[h] = Create3DTextLabel(string1,0x0087AFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20,0,1);
           pickups++;
       }


za sta ce ti adresa ako ne mozes da sklopis?takodje moras definirati get2dzone,to kucaj u cyber modu u ctrl+f :S
Poslednja Izmena: Maj 28, 2011, 14:32:57 POSLE PODNE od [BF]Nxidza

evo ubacio sam kodove sto si mi dao i imam 5 errora

C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11102) : error 017: undefined symbol "Get2DZone"
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11104) : error 028: invalid subscript (not an array or too many subscripts): "housesale"
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11104) : warning 215: expression has no effect
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11104) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11104) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(11104) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

11102 red je:
Get2DZone(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey]);

11104 red je:
housesale[h] = Create3DTextLabel(string1,0x0087AFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20,0,1);

Get2DZone(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey]);

To moras definirat isto kako je u tvojoj skripti Entrance


housesale[h] = Create3DTextLabel(string1,0x0087AFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20,0,1)

Isto ko gore,preimenovat kako ti je u skripti


a kako da saznam kako ej definisamo u skripti nekontam :S

NaÄ'i pod /buyhouse ili /asellhouse,nesto slicno ovom u gornjem postu ali malo drukcije

if(IsPlayerConnected(playerid))
    {
new Float:oldposx, Float:oldposy, Float:oldposz;
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0)
{
if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel])
{
format(string, sizeof(string), "   Morate biit Level %d da biste kupili ovo !", HouseInfo[h][hLevel]);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}
if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "   Vec posjedujete kucu, kucajte /sellhouse ako zelite da kupite ovu !");
return 1;
}
to je samo dio sta se nalazi ispod /buyhouse...mozes mi sada pomoci posto ne kontam sta treba pls

Citat: sampzone poslato Maj 28, 2011, 16:39:40 POSLE PODNE
if(IsPlayerConnected(playerid))
   {
new Float:oldposx, Float:oldposy, Float:oldposz;
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0)
{
if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel])
{
format(string, sizeof(string), "   Morate biit Level %d da biste kupili ovo !", HouseInfo[h][hLevel]);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}
if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "   Vec posjedujete kucu, kucajte /sellhouse ako zelite da kupite ovu !");
return 1;
}
to je samo dio sta se nalazi ispod /buyhouse...mozes mi sada pomoci posto ne kontam sta treba pls
[Cenzura | Moderator],otvori cyber bre i kucaj Get2DZone i nadji i kopiraj/nalepi u svoju skriptu pa onda poteras ostalo na f3 i trazis gde svugde ima u cyberu tako stavis kod tebe jbt,tako i za housesale,ae malo sam se potrudi bre,otvorio si 100tema i jos nista nisi naucio...


Moderator
Nemoj psovati...
Poslednja Izmena: Maj 28, 2011, 20:04:13 POSLE PODNE od [AG] eXtreme

Citat: [SX:RP]Plavsa poslato Maj 28, 2011, 14:29:44 POSLE PODNE
Citat: [AG] System32 poslato Maj 28, 2011, 14:25:00 POSLE PODNE
ouuuuuuu maj faking gad


ahahhahahahaahahahahahhahahaahahaha
HaHaHa. Brisem post...


OnTopic: Ja vas nerazumem sto sve kopirate iz drugih modova...

pa ajde pomozi da napravim 3D text sto nema nigdje....ja bih napravio kada bi znao