[POMOC] Adrese na kucama

Započeo David003, Avgust 22, 2012, 23:51:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Moja (U obliku GF-a)
Opis problema: Napravio sam house sistem i sve radi ali kad sam dodao adrese na kucama izbacuje mi ovaj error


C:\Documents and Settings\David Babić\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(17478) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


Dio skripte: To je ta linija: Get2DZone(location, MAX_ZONE_NAME, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]);

Slika/Video: //

Uskoro!
Usput trazim mapera,inbox zainteresirani!

Daj Get2DZone,daj par linija ispod i iznad.

evo

   for(new h = 0; h < sizeof(Houses); h++)
{
        new location[MAX_ZONE_NAME];
        Get2DZone(location, MAX_ZONE_NAME, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]);
    if(Houses[h][hOwned] == 0 && Houses[h][hBanned] != 1) {
            if(Houses[h][hExteriorX] != 0.000000 && Houses[h][hExteriorY] != -1250.349243 && Houses[h][hExteriorZ] != 13.546875) {
            format(PropertyString,sizeof(PropertyString),"{48E31C}Na prodaju!\n{48E31C}Cijena: {FFFFFF}$%d\n{48E31C}Level: {FFFFFF}%d\n{48E31C}Opis: {FFFFFF}%s\n{48E31C}Adresa:{FFFFFF} %s\n{48E31C}/kupikucu",Houses[h][HousePrice],Houses[h][hLevel], Houses[h][hOpis], location);
            HouseLabel[h] = Create3DTextLabel(PropertyString ,0x4198C4FF,Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]+0.5,40.0, 0, 1);
            HousePickup[h] =  AddStaticPickup(1273, 1, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]);
            pickups++;
        }
    }
    if(Houses[h][hOpis] && Houses[h][hOwned] == 1 && Houses[h][hRentabil] == 1 && Houses[h][hBanned] != 1) {
        format(PropertyString,sizeof(PropertyString),"{48E31C}Opis: {FFFFFF}%s\n{48E31C}Vlasnik: {FFFFFF}%s\n{48E31C}Rent: {FFFFFF}%d$\n{48E31C}Level: {FFFFFF}%d\n{48E31C}Najam: {FFFFFF}/rentroom\n{48E31C}Adresa:{FFFFFF} %s", Houses[h][hOpis],Houses[h][hOwner],Houses[h][hRent],Houses[h][hLevel], location);
        HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]+0.5,35.0, 0, 1);
        HousePickup[h] =  AddStaticPickup(1239, 1, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]);

        pickups++;
    }
    if(Houses[h][hOpis] && Houses[h][hOwned] == 1 && Houses[h][hRentabil] != 1 && Houses[h][hBanned] != 1) {
        format(PropertyString,sizeof(PropertyString),"{48E31C}Vlasnik: {FFFFFF}%s \n{48E31C}Level: {FFFFFF}%d{48E31C}Najam: {FFFFFF}/rentroom\n{48E31C}Adresa:{FFFFFF} %s", Houses[h][hOpis],Houses[h][hOwner],Houses[h][hLevel],location);
        HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]+0.5,35.0, 0, 1);
        HousePickup[h] =  AddStaticPickup(1239, 1, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]);

        pickups++;
    }
    if(Houses[h][hBanned] == 1) {
        format(PropertyString,sizeof(PropertyString),"{F81414}Kuca [BANOVANOG] igraca!\n{F81414}Vlasnik: {FFFFFF}%s \n{F81414}Level: {FFFFFF}%d \n{F81414}ID:{FFFFFF} %d\n{48E31C}Adresa:{FFFFFF} %s", Houses[h][hOwner],Houses[h][hLevel],h,location);
        HouseLabel[h] = Create3DTextLabel(PropertyString ,0xD50000FF,Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]+0.5,35.0, 0, 1);
        HousePickup[h] =  AddStaticPickup(1239, 1, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]);

        pickups++;
    }
}

Uskoro!
Usput trazim mapera,inbox zainteresirani!

Citat: Izvanzemaljac poslato Avgust 23, 2012, 00:16:46 PRE PODNE
evo

   for(new h = 0; h < sizeof(Houses); h++)
{
        new location[MAX_ZONE_NAME];
        Get2DZone(location, MAX_ZONE_NAME, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]);
    if(Houses[h][hOwned] == 0 && Houses[h][hBanned] != 1) {
            if(Houses[h][hExteriorX] != 0.000000 && Houses[h][hExteriorY] != -1250.349243 && Houses[h][hExteriorZ] != 13.546875) {
            format(PropertyString,sizeof(PropertyString),"{48E31C}Na prodaju!\n{48E31C}Cijena: {FFFFFF}$%d\n{48E31C}Level: {FFFFFF}%d\n{48E31C}Opis: {FFFFFF}%s\n{48E31C}Adresa:{FFFFFF} %s\n{48E31C}/kupikucu",Houses[h][HousePrice],Houses[h][hLevel], Houses[h][hOpis], location);
            HouseLabel[h] = Create3DTextLabel(PropertyString ,0x4198C4FF,Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]+0.5,40.0, 0, 1);
            HousePickup[h] =  AddStaticPickup(1273, 1, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]);
            pickups++;
        }
    }
    if(Houses[h][hOpis] && Houses[h][hOwned] == 1 && Houses[h][hRentabil] == 1 && Houses[h][hBanned] != 1) {
        format(PropertyString,sizeof(PropertyString),"{48E31C}Opis: {FFFFFF}%s\n{48E31C}Vlasnik: {FFFFFF}%s\n{48E31C}Rent: {FFFFFF}%d$\n{48E31C}Level: {FFFFFF}%d\n{48E31C}Najam: {FFFFFF}/rentroom\n{48E31C}Adresa:{FFFFFF} %s", Houses[h][hOpis],Houses[h][hOwner],Houses[h][hRent],Houses[h][hLevel], location);
        HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]+0.5,35.0, 0, 1);
        HousePickup[h] =  AddStaticPickup(1239, 1, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]);

        pickups++;
    }
    if(Houses[h][hOpis] && Houses[h][hOwned] == 1 && Houses[h][hRentabil] != 1 && Houses[h][hBanned] != 1) {
        format(PropertyString,sizeof(PropertyString),"{48E31C}Vlasnik: {FFFFFF}%s \n{48E31C}Level: {FFFFFF}%d{48E31C}Najam: {FFFFFF}/rentroom\n{48E31C}Adresa:{FFFFFF} %s", Houses[h][hOpis],Houses[h][hOwner],Houses[h][hLevel],location);
        HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]+0.5,35.0, 0, 1);
        HousePickup[h] =  AddStaticPickup(1239, 1, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]);

        pickups++;
    }
    if(Houses[h][hBanned] == 1) {
        format(PropertyString,sizeof(PropertyString),"{F81414}Kuca [BANOVANOG] igraca!\n{F81414}Vlasnik: {FFFFFF}%s \n{F81414}Level: {FFFFFF}%d \n{F81414}ID:{FFFFFF} %d\n{48E31C}Adresa:{FFFFFF} %s", Houses[h][hOwner],Houses[h][hLevel],h,location);
        HouseLabel[h] = Create3DTextLabel(PropertyString ,0xD50000FF,Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]+0.5,35.0, 0, 1);
        HousePickup[h] =  AddStaticPickup(1239, 1, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]);

        pickups++;
    }
}


A stock Get2DZone ili public sta je vec...?

Evo

stock Get2DZone(zone[], len, Float:x, Float:y )
{
for(new i = 0; i != sizeof(SA_GPS_ZONE_NAMES); i++ ){
if(x >= SA_GPS_ZONE_NAMES[i][Zone_Area][0] && x <= SA_GPS_ZONE_NAMES[i][Zone_Area][3] && y >= SA_GPS_ZONE_NAMES[i][Zone_Area][1] && y <= SA_GPS_ZONE_NAMES[i][Zone_Area][4]){
return format(zone, len, SA_GPS_ZONE_NAMES[i][Zone_Name], 0);}
}
return 0;
}


samo da kazem sad sam nes sredio i pisu adrese al kad kupim kucu ne pise adrese i onda kad prodam isto ne pise al kad ne kupim onda pise

Uskoro!
Usput trazim mapera,inbox zainteresirani!

Oprostite na DP ili kako se to vec zove ,al sad kad sam sredio stock dobijem ovaj warning


C:\Documents and Settings\David Babić\Desktop\Croatia Sky RolePlay\gamemodes\CSRP.pwn(17478) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size:          14036 bytes
Code size:          3129408 bytes
Data size:          9772680 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4987 cells (19948 bytes)
Total requirements:12932508 bytes

1 Warning.

Uskoro!
Usput trazim mapera,inbox zainteresirani!