Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Problema text case/bizuri/garage


Question

Posted

Salutare am o problema la textele de la case bizuri si garage depe gamemodeul Galaxy-Arena la id 0 nu apare la id 1 -2 etc arata dar id 0 nu arata, inainte cand dadeam rr la sv aparea dar acum nici dupa rr cum pot rezolva help plz 

23 answers to this question

Recommended Posts

  • 1
Posted
Just now, Exaton said:

acum nu da error si cand intru pe localhost arata ca mereu daca iar vor disparea iti voi da pm ms mult de ajutor

Poti sa-mi dai +1, ca ma multumesc si cu atat, daca ai nevoie de ajutor, ma gasesti pe discord: RzNN#2890 sau un PM pe forum.

  • 1
Posted
7 hours ago, Exaton said:

public LoadProperty()
{
    housess = cache_num_rows();
    for(new i = 1; i <= housess; i++)
    {
        new h = i - 1;
        HouseInfo[hID]                           = cache_get_field_content_int(h, "ID");
           HouseInfo[hEntrancex]                    = cache_get_field_content_float(h, "Entrancex");
        HouseInfo[hEntrancey]                    = cache_get_field_content_float(h, "Entrancey");
        HouseInfo[hEntrancez]                    = cache_get_field_content_float(h, "Entrancez");
        HouseInfo[hExitx]                        = cache_get_field_content_float(h, "Exitx");
        HouseInfo[hExity]                        = cache_get_field_content_float(h, "Exity");
        HouseInfo[hExitz]                        = cache_get_field_content_float(h, "Exitz");
        cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
        cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
        HouseInfo[hValue]                        = cache_get_field_content_int(h, "Value");
        HouseInfo[hPrice]                        = cache_get_field_content_int(h, "Prices");
        HouseInfo[hHel]                          = cache_get_field_content_int(h, "Hel");
        HouseInfo[hMusic]                        = cache_get_field_content_int(h, "Music");
        HouseInfo[hInterior]                     = cache_get_field_content_int(h, "Interior");
        HouseInfo[hInteriorType]                 = cache_get_field_content_int(h, "InteriorType");
        HouseInfo[hLock]                         = cache_get_field_content_int(h, "Lockk");
        HouseInfo[hOwned]                        = cache_get_field_content_int(h, "Owned");
        HouseInfo[hRent]                         = cache_get_field_content_int(h, "Rent");
        HouseInfo[hRentabil]                     = cache_get_field_content_int(h, "Rentabil");
        HouseInfo[hTakings]                      = cache_get_field_content_int(h, "Takings");
        HouseInfo[hLevel]                        = cache_get_field_content_int(h, "Level");
        HouseInfo[hVirtual]                      = cache_get_field_content_int(h, "Virtual");
        
           /*Incep garajele*/
        HouseInfo[gExtX]                        = cache_get_field_content_float(h, "gExtX");
        HouseInfo[gExtY]                        = cache_get_field_content_float(h, "gExtY");
        HouseInfo[gExtZ]                        = cache_get_field_content_float(h, "gExtZ");
        HouseInfo[gAngel]                       = cache_get_field_content_float(h, "gAngel");
        HouseInfo[hgaraj]                       = cache_get_field_content_int(h, "garaj");
        HouseInfo[gSlot]                        = cache_get_field_content_int(h, "gSlot");
    }
    for(new i = 1; i <= housess; i++)
    {
        OnPropTextdrawUpdate(1, i);
    }
    printf("[LOADING] %d houses loaded.", housess);
    printf("[LOADING] %d turfs loaded.", turfsss);
}

ia frt:

 

public LoadProperty()
{
    housess = cache_num_rows();
    for(new i = 0; i <= housess; i++)
    {
        new h = i - 1;
        HouseInfo[hID]                           = cache_get_field_content_int(h, "ID");
           HouseInfo[hEntrancex]                    = cache_get_field_content_float(h, "Entrancex");
        HouseInfo[hEntrancey]                    = cache_get_field_content_float(h, "Entrancey");
        HouseInfo[hEntrancez]                    = cache_get_field_content_float(h, "Entrancez");
        HouseInfo[hExitx]                        = cache_get_field_content_float(h, "Exitx");
        HouseInfo[hExity]                        = cache_get_field_content_float(h, "Exity");
        HouseInfo[hExitz]                        = cache_get_field_content_float(h, "Exitz");
        cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
        cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
        HouseInfo[hValue]                        = cache_get_field_content_int(h, "Value");
        HouseInfo[hPrice]                        = cache_get_field_content_int(h, "Prices");
        HouseInfo[hHel]                          = cache_get_field_content_int(h, "Hel");
        HouseInfo[hMusic]                        = cache_get_field_content_int(h, "Music");
        HouseInfo[hInterior]                     = cache_get_field_content_int(h, "Interior");
        HouseInfo[hInteriorType]                 = cache_get_field_content_int(h, "InteriorType");
        HouseInfo[hLock]                         = cache_get_field_content_int(h, "Lockk");
        HouseInfo[hOwned]                        = cache_get_field_content_int(h, "Owned");
        HouseInfo[hRent]                         = cache_get_field_content_int(h, "Rent");
        HouseInfo[hRentabil]                     = cache_get_field_content_int(h, "Rentabil");
        HouseInfo[hTakings]                      = cache_get_field_content_int(h, "Takings");
        HouseInfo[hLevel]                        = cache_get_field_content_int(h, "Level");
        HouseInfo[hVirtual]                      = cache_get_field_content_int(h, "Virtual");
        
           /*Incep garajele*/
        HouseInfo[gExtX]                        = cache_get_field_content_float(h, "gExtX");
        HouseInfo[gExtY]                        = cache_get_field_content_float(h, "gExtY");
        HouseInfo[gExtZ]                        = cache_get_field_content_float(h, "gExtZ");
        HouseInfo[gAngel]                       = cache_get_field_content_float(h, "gAngel");
        HouseInfo[hgaraj]                       = cache_get_field_content_int(h, "garaj");
        HouseInfo[gSlot]                        = cache_get_field_content_int(h, "gSlot");
    }
    for(new i = 1; i <= housess; i++)
    {
        OnPropTextdrawUpdate(1, i);
    }
    printf("[LOADING] %d houses loaded.", housess);
    printf("[LOADING] %d turfs loaded.", turfsss);
}

  • 1
Posted
2 hours ago, PauLL said:

trebuie modificate toate de genul


HouseInfo[hLevel] 

 

 

in


HouseInfo[i][hLevel] 

 

 

El a vrut doar sa ia din baza de date de la ID-ul 0.

  • 1
Posted
1 hour ago, Exaton said:

deci mai ma ajuta cineva cu problema?

Codul corect: 

 

public LoadProperty()
{
    housess = cache_num_rows();
    for(new i = 0; i <= housess; i++)
    {
        new h = i - 1;
        HouseInfo[hID]                           = cache_get_field_content_int(h, "ID");
           HouseInfo[hEntrancex]                    = cache_get_field_content_float(h, "Entrancex");
        HouseInfo[hEntrancey]                    = cache_get_field_content_float(h, "Entrancey");
        HouseInfo[hEntrancez]                    = cache_get_field_content_float(h, "Entrancez");
        HouseInfo[hExitx]                        = cache_get_field_content_float(h, "Exitx");
        HouseInfo[hExity]                        = cache_get_field_content_float(h, "Exity");
        HouseInfo[hExitz]                        = cache_get_field_content_float(h, "Exitz");
        cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
        cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
        HouseInfo[hValue]                        = cache_get_field_content_int(h, "Value");
        HouseInfo[hPrice]                        = cache_get_field_content_int(h, "Prices");
        HouseInfo[hHel]                          = cache_get_field_content_int(h, "Hel");
        HouseInfo[hMusic]                        = cache_get_field_content_int(h, "Music");
        HouseInfo[hInterior]                     = cache_get_field_content_int(h, "Interior");
        HouseInfo[hInteriorType]                 = cache_get_field_content_int(h, "InteriorType");
        HouseInfo[hLock]                         = cache_get_field_content_int(h, "Lockk");
        HouseInfo[hOwned]                        = cache_get_field_content_int(h, "Owned");
        HouseInfo[hRent]                         = cache_get_field_content_int(h, "Rent");
        HouseInfo[hRentabil]                     = cache_get_field_content_int(h, "Rentabil");
        HouseInfo[hTakings]                      = cache_get_field_content_int(h, "Takings");
        HouseInfo[hLevel]                        = cache_get_field_content_int(h, "Level");
        HouseInfo[hVirtual]                      = cache_get_field_content_int(h, "Virtual");
        
           /*Incep garajele*/
        HouseInfo[gExtX]                        = cache_get_field_content_float(h, "gExtX");
        HouseInfo[gExtY]                        = cache_get_field_content_float(h, "gExtY");
        HouseInfo[gExtZ]                        = cache_get_field_content_float(h, "gExtZ");
        HouseInfo[gAngel]                       = cache_get_field_content_float(h, "gAngel");
        HouseInfo[hgaraj]                       = cache_get_field_content_int(h, "garaj");
        HouseInfo[gSlot]                        = cache_get_field_content_int(h, "gSlot");
    }
    for(new i = 1; i <= housess; i++)
    {
        OnPropTextdrawUpdate(1, i);
    }
    printf("[LOADING] %d houses loaded.", housess);
    printf("[LOADING] %d turfs loaded.", turfsss);
}

  • 1
Posted
1 minute ago, Exaton said:

C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17326) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17327) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17328) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17329) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17330) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17331) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17332) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17335) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17336) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17337) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17338) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17339) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17340) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17341) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17342) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17343) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17344) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17345) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17346) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17347) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17350) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17351) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17352) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17353) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17354) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17355) : error 033: array must be indexed (variable "HouseInfo")

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


26 Errors.
 

Da-mi linia cu new HouseInfo

  • 1
Posted
1 minute ago, Exaton said:

new HouseInfo[MAX_HOUSES][hInfo],

Am uitat sa copiez iar codu, ia-l:

 

public LoadProperty()
{
    housess = cache_num_rows();
    for(new i = 0; i <= housess; i++)
    {
        new h = i - 1;
        HouseInfo[hID]                           = cache_get_field_content_int(h, "ID");
           HouseInfo[hEntrancex]                    = cache_get_field_content_float(h, "Entrancex");
        HouseInfo[hEntrancey]                    = cache_get_field_content_float(h, "Entrancey");
        HouseInfo[hEntrancez]                    = cache_get_field_content_float(h, "Entrancez");
        HouseInfo[hExitx]                        = cache_get_field_content_float(h, "Exitx");
        HouseInfo[hExity]                        = cache_get_field_content_float(h, "Exity");
        HouseInfo[hExitz]                        = cache_get_field_content_float(h, "Exitz");
        cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
        cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
        HouseInfo[hValue]                        = cache_get_field_content_int(h, "Value");
        HouseInfo[hPrice]                        = cache_get_field_content_int(h, "Prices");
        HouseInfo[hHel]                          = cache_get_field_content_int(h, "Hel");
        HouseInfo[hMusic]                        = cache_get_field_content_int(h, "Music");
        HouseInfo[hInterior]                     = cache_get_field_content_int(h, "Interior");
        HouseInfo[hInteriorType]                 = cache_get_field_content_int(h, "InteriorType");
        HouseInfo[hLock]                         = cache_get_field_content_int(h, "Lockk");
        HouseInfo[hOwned]                        = cache_get_field_content_int(h, "Owned");
        HouseInfo[hRent]                         = cache_get_field_content_int(h, "Rent");
        HouseInfo[hRentabil]                     = cache_get_field_content_int(h, "Rentabil");
        HouseInfo[hTakings]                      = cache_get_field_content_int(h, "Takings");
        HouseInfo[hLevel]                        = cache_get_field_content_int(h, "Level");
        HouseInfo[hVirtual]                      = cache_get_field_content_int(h, "Virtual");
        
           /*Incep garajele*/
        HouseInfo[gExtX]                        = cache_get_field_content_float(h, "gExtX");
        HouseInfo[gExtY]                        = cache_get_field_content_float(h, "gExtY");
        HouseInfo[gExtZ]                        = cache_get_field_content_float(h, "gExtZ");
        HouseInfo[gAngel]                       = cache_get_field_content_float(h, "gAngel");
        HouseInfo[hgaraj]                       = cache_get_field_content_int(h, "garaj");
        HouseInfo[gSlot]                        = cache_get_field_content_int(h, "gSlot");
    }
    for(new i = 1; i <= housess; i++)
    {
        OnPropTextdrawUpdate(1, i);
    }
    printf("[LOADING] %d houses loaded.", housess);
    printf("[LOADING] %d turfs loaded.", turfsss);
}

  • 1
Posted (edited)

Nu stiu ce are de nu merge cu spoiler, ia-l asa: 

Am uitat sa copiez iar codu, ia-l:

public LoadProperty()
{
    housess = cache_num_rows();
    for(new i = 0; i <= housess; i++)
    {
        new h = i - 1;
        HouseInfo[hID]                           = cache_get_field_content_int(h, "ID");
           HouseInfo[hEntrancex]                    = cache_get_field_content_float(h, "Entrancex");
        HouseInfo[hEntrancey]                    = cache_get_field_content_float(h, "Entrancey");
        HouseInfo[hEntrancez]                    = cache_get_field_content_float(h, "Entrancez");
        HouseInfo[hExitx]                        = cache_get_field_content_float(h, "Exitx");
        HouseInfo[hExity]                        = cache_get_field_content_float(h, "Exity");
        HouseInfo[hExitz]                        = cache_get_field_content_float(h, "Exitz");
        cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
        cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
        HouseInfo[hValue]                        = cache_get_field_content_int(h, "Value");
        HouseInfo[hPrice]                        = cache_get_field_content_int(h, "Prices");
        HouseInfo[hHel]                          = cache_get_field_content_int(h, "Hel");
        HouseInfo[hMusic]                        = cache_get_field_content_int(h, "Music");
        HouseInfo[hInterior]                     = cache_get_field_content_int(h, "Interior");
        HouseInfo[hInteriorType]                 = cache_get_field_content_int(h, "InteriorType");
        HouseInfo[hLock]                         = cache_get_field_content_int(h, "Lockk");
        HouseInfo[hOwned]                        = cache_get_field_content_int(h, "Owned");
        HouseInfo[hRent]                         = cache_get_field_content_int(h, "Rent");
        HouseInfo[hRentabil]                     = cache_get_field_content_int(h, "Rentabil");
        HouseInfo[hTakings]                      = cache_get_field_content_int(h, "Takings");
        HouseInfo[hLevel]                        = cache_get_field_content_int(h, "Level");
        HouseInfo[hVirtual]                      = cache_get_field_content_int(h, "Virtual");
        
           /*Incep garajele*/
        HouseInfo[gExtX]                        = cache_get_field_content_float(h, "gExtX");
        HouseInfo[gExtY]                        = cache_get_field_content_float(h, "gExtY");
        HouseInfo[gExtZ]                        = cache_get_field_content_float(h, "gExtZ");
        HouseInfo[gAngel]                       = cache_get_field_content_float(h, "gAngel");
        HouseInfo[hgaraj]                       = cache_get_field_content_int(h, "garaj");
        HouseInfo[gSlot]                        = cache_get_field_content_int(h, "gSlot");
    }
    for(new i = 0; i <= housess; i++)
    {
        OnPropTextdrawUpdate(1, i);
    }
    printf("[LOADING] %d houses loaded.", housess);
    printf("[LOADING] %d turfs loaded.", turfsss);
}

 

EDIT: Aparent nu merge nici asa, ia-l de aici: https://pastebin.com/XCBA15pQ

Edited by RazvaN.
  • 0
Posted
1 oră în urmă, Exaton a spus:

Salutare am o problema la textele de la case bizuri si garage depe gamemodeul Galaxy-Arena la id 0 nu apare la id 1 -2 etc arata dar id 0 nu arata, inainte cand dadeam rr la sv aparea dar acum nici dupa rr cum pot rezolva help plz 

arata functia aferenta acestor texte

  • 0
Posted
Acum 8 minute, valivaly96 a spus:

arata functia aferenta acestor texte

public OnPropTextdrawUpdate(update, h)
{
    new PropertyString[512];
    if(update == 1)
    {
        new type[10],locked[20];
        if(HouseInfo[h][hInteriorType] == 0) format(type, sizeof(type),"Small");
        if(HouseInfo[h][hInteriorType] == 1) format(type, sizeof(type),"Medium");
        if(HouseInfo[h][hInteriorType] == 2) format(type, sizeof(type),"Big");
        if(HouseInfo[h][hLock] == 1) format(locked, sizeof(locked), "\n(locked)");
        HouseIcon[h] = CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 31, -1, 0, 0, -1, 50.0);
        if(HouseInfo[h][hOwned] == 0)
        {
            DestroyDynamic3DTextLabel(HouseLabel[h]);
            format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {008080}%d \n{008080}%s \n{FFFFFF}Size: {008080}%s \n{FFFFFF}Price: {008080}$%s (/buyhouse) \n{FFFFFF}Level: {008080}%d %s",h,HouseInfo[h][hDiscription],type,FormatNumber(HouseInfo[h][hValue]),HouseInfo[h][hLevel],locked);
            HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
            DestroyDynamicPickup(HousePickup[h]);
            HousePickup[h] = CreateDynamicPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
        }
        else if(HouseInfo[h][hOwned] == 1)
        {
            new tenants=0,query[256],selltext[64];
            format(query, sizeof(query), "SELECT * FROM `users` WHERE `Rented` = '%d' AND `Status`='1'", h);
            new Cache: membresult = mysql_query(SQL, query);
            for(new i, j = cache_get_row_count (); i != j; ++i)
            {
                tenants++;
            }
            cache_delete(membresult);
            if(HouseInfo[h][hPrice] > 0)
            {
                format(selltext, sizeof(selltext),"\n{FFFFFF}Price: {008080}$%s (/buyhouse)",FormatNumber(HouseInfo[h][hPrice]));
            }
            if(HouseInfo[h][hRentabil] == 1)
            {
                DestroyDynamic3DTextLabel(HouseLabel[h]);
                format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {008080}%d \n{008080}%s \n{FFFFFF}Owner: {008080}%s \n{FFFFFF}Tenants: {008080}%d \n{FFFFFF}Size: {008080}%s \n{FFFFFF}Rent: {008080}$%d (/rentroom) %s %s",h,HouseInfo[h][hDiscription],HouseInfo[h][hOwner],tenants,type,HouseInfo[h][hRent],selltext,locked);
                HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
                DestroyDynamicPickup(HousePickup[h]);
                HousePickup[h] = CreateDynamicPickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            }
            else
            {
                DestroyDynamic3DTextLabel(HouseLabel[h]);
                format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {008080}%d \n{008080}%s \n{FFFFFF}Owner: {008080}%s \n{FFFFFF}Tenants: {008080}%d \n{FFFFFF}Size: {008080}%s %s %s",h,HouseInfo[h][hDiscription],HouseInfo[h][hOwner], tenants, type, selltext, locked);
                HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
                DestroyDynamicPickup(HousePickup[h]);
                HousePickup[h] = CreateDynamicPickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            }
        }
        if(HouseInfo[h][hgaraj] == 1)
        {
            new label[256];
            DestroyDynamic3DTextLabel(GarajeLabel[h]);
            format(label, sizeof(label), "{FFFFFF}Garage {008080}%d\n{FFFFFF}Owner: {008080}%s\n{FFFFFF}To enter type {008080}/garage",h, HouseInfo[h][hOwner],HouseInfo[h]);
            GarajeLabel[h] = CreateDynamic3DTextLabel(label, 0xFFFFFFFF, HouseInfo[h][gExtX], HouseInfo[h][gExtY], HouseInfo[h][gExtZ], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
            DestroyDynamicPickup(GarajePickup[h]);
            GarajePickup[h] = CreateDynamicPickup(19133, 1, HouseInfo[h][gExtX], HouseInfo[h][gExtY], HouseInfo[h][gExtZ]);
        }
    }
    else if(update == 2)
    {
        if(BizzInfo[h][bOwned] == 0)
        {
            DestroyDynamic3DTextLabel(BizzLabel[h]);
            if(BizzInfo[h][bLocked] == 0) format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n {EEEEEE}Price: {0068CF}$%s (/buybusiness) \n{EEEEEE}Level: {0068CF}%d",BizzInfo[h][bMessage],h,FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded]);
            else format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n {EEEEEE}Price: {0068CF}$%s (/buybusiness) \n{EEEEEE}Level: {0068CF}%d \n(locked)",BizzInfo[h][bMessage],h,FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded]);
            BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
        }
        else if(BizzInfo[h][bOwned] == 1)
        {
            DestroyDynamic3DTextLabel(BizzLabel[h]);
            if(BizzInfo[h][bPrice] > 0)
            {
                if(BizzInfo[h][bLocked] == 0) format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s \n{EEEEEE}Price: {0068CF}$%s (/buybusiness)",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]), FormatNumber(BizzInfo[h][bPrice]));
                else format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s \n{EEEEEE}Price: {0068CF}$%s (/buybusiness) \n(locked)",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]), FormatNumber(BizzInfo[h][bPrice]));
            }
            else
            {
                if(BizzInfo[h][bLocked] == 0) format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]));
                else format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s \n(locked)",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]));
            }
            BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
        }
    }
    return 1;
}

  • 0
Posted
Acum 43 minute, Exaton a spus:

public OnPropTextdrawUpdate(update, h)
{
    new PropertyString[512];
    if(update == 1)
    {
        new type[10],locked[20];
        if(HouseInfo[h][hInteriorType] == 0) format(type, sizeof(type),"Small");
        if(HouseInfo[h][hInteriorType] == 1) format(type, sizeof(type),"Medium");
        if(HouseInfo[h][hInteriorType] == 2) format(type, sizeof(type),"Big");
        if(HouseInfo[h][hLock] == 1) format(locked, sizeof(locked), "\n(locked)");
        HouseIcon[h] = CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 31, -1, 0, 0, -1, 50.0);
        if(HouseInfo[h][hOwned] == 0)
        {
            DestroyDynamic3DTextLabel(HouseLabel[h]);
            format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {008080}%d \n{008080}%s \n{FFFFFF}Size: {008080}%s \n{FFFFFF}Price: {008080}$%s (/buyhouse) \n{FFFFFF}Level: {008080}%d %s",h,HouseInfo[h][hDiscription],type,FormatNumber(HouseInfo[h][hValue]),HouseInfo[h][hLevel],locked);
            HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
            DestroyDynamicPickup(HousePickup[h]);
            HousePickup[h] = CreateDynamicPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
        }
        else if(HouseInfo[h][hOwned] == 1)
        {
            new tenants=0,query[256],selltext[64];
            format(query, sizeof(query), "SELECT * FROM `users` WHERE `Rented` = '%d' AND `Status`='1'", h);
            new Cache: membresult = mysql_query(SQL, query);
            for(new i, j = cache_get_row_count (); i != j; ++i)
            {
                tenants++;
            }
            cache_delete(membresult);
            if(HouseInfo[h][hPrice] > 0)
            {
                format(selltext, sizeof(selltext),"\n{FFFFFF}Price: {008080}$%s (/buyhouse)",FormatNumber(HouseInfo[h][hPrice]));
            }
            if(HouseInfo[h][hRentabil] == 1)
            {
                DestroyDynamic3DTextLabel(HouseLabel[h]);
                format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {008080}%d \n{008080}%s \n{FFFFFF}Owner: {008080}%s \n{FFFFFF}Tenants: {008080}%d \n{FFFFFF}Size: {008080}%s \n{FFFFFF}Rent: {008080}$%d (/rentroom) %s %s",h,HouseInfo[h][hDiscription],HouseInfo[h][hOwner],tenants,type,HouseInfo[h][hRent],selltext,locked);
                HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
                DestroyDynamicPickup(HousePickup[h]);
                HousePickup[h] = CreateDynamicPickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            }
            else
            {
                DestroyDynamic3DTextLabel(HouseLabel[h]);
                format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {008080}%d \n{008080}%s \n{FFFFFF}Owner: {008080}%s \n{FFFFFF}Tenants: {008080}%d \n{FFFFFF}Size: {008080}%s %s %s",h,HouseInfo[h][hDiscription],HouseInfo[h][hOwner], tenants, type, selltext, locked);
                HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
                DestroyDynamicPickup(HousePickup[h]);
                HousePickup[h] = CreateDynamicPickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            }
        }
        if(HouseInfo[h][hgaraj] == 1)
        {
            new label[256];
            DestroyDynamic3DTextLabel(GarajeLabel[h]);
            format(label, sizeof(label), "{FFFFFF}Garage {008080}%d\n{FFFFFF}Owner: {008080}%s\n{FFFFFF}To enter type {008080}/garage",h, HouseInfo[h][hOwner],HouseInfo[h]);
            GarajeLabel[h] = CreateDynamic3DTextLabel(label, 0xFFFFFFFF, HouseInfo[h][gExtX], HouseInfo[h][gExtY], HouseInfo[h][gExtZ], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
            DestroyDynamicPickup(GarajePickup[h]);
            GarajePickup[h] = CreateDynamicPickup(19133, 1, HouseInfo[h][gExtX], HouseInfo[h][gExtY], HouseInfo[h][gExtZ]);
        }
    }
    else if(update == 2)
    {
        if(BizzInfo[h][bOwned] == 0)
        {
            DestroyDynamic3DTextLabel(BizzLabel[h]);
            if(BizzInfo[h][bLocked] == 0) format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n {EEEEEE}Price: {0068CF}$%s (/buybusiness) \n{EEEEEE}Level: {0068CF}%d",BizzInfo[h][bMessage],h,FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded]);
            else format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n {EEEEEE}Price: {0068CF}$%s (/buybusiness) \n{EEEEEE}Level: {0068CF}%d \n(locked)",BizzInfo[h][bMessage],h,FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded]);
            BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
        }
        else if(BizzInfo[h][bOwned] == 1)
        {
            DestroyDynamic3DTextLabel(BizzLabel[h]);
            if(BizzInfo[h][bPrice] > 0)
            {
                if(BizzInfo[h][bLocked] == 0) format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s \n{EEEEEE}Price: {0068CF}$%s (/buybusiness)",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]), FormatNumber(BizzInfo[h][bPrice]));
                else format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s \n{EEEEEE}Price: {0068CF}$%s (/buybusiness) \n(locked)",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]), FormatNumber(BizzInfo[h][bPrice]));
            }
            else
            {
                if(BizzInfo[h][bLocked] == 0) format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]));
                else format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s \n(locked)",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]));
            }
            BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
        }
    }
    return 1;
}

aici pare totul ok. poate cand incarci casele cand folosesti instructiunea for e posibil ca i sa plece de la 1 nu de la 0

  • 0
Posted
Acum 8 minute, valivaly96 a spus:

aici pare totul ok. poate cand incarci casele cand folosesti instructiunea for e posibil ca i sa plece de la 1 nu de la 0

si cum fac sa plece de la 0

 

  • 0
Posted

si nu mereu nu arat dar uneori nu arata cam la fiecare ora dispare si cand dau rr apare la loc 

  • 0
Posted
Acum 11 ore, valivaly96 a spus:

arata codul de la LoadProperty sau cum se numeste functia pt incarcare a caselor

public LoadProperty()
{
    housess = cache_num_rows();
    for(new i = 1; i <= housess; i++)
    {
        new h = i - 1;
        HouseInfo[hID]                           = cache_get_field_content_int(h, "ID");
           HouseInfo[hEntrancex]                    = cache_get_field_content_float(h, "Entrancex");
        HouseInfo[hEntrancey]                    = cache_get_field_content_float(h, "Entrancey");
        HouseInfo[hEntrancez]                    = cache_get_field_content_float(h, "Entrancez");
        HouseInfo[hExitx]                        = cache_get_field_content_float(h, "Exitx");
        HouseInfo[hExity]                        = cache_get_field_content_float(h, "Exity");
        HouseInfo[hExitz]                        = cache_get_field_content_float(h, "Exitz");
        cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
        cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
        HouseInfo[hValue]                        = cache_get_field_content_int(h, "Value");
        HouseInfo[hPrice]                        = cache_get_field_content_int(h, "Prices");
        HouseInfo[hHel]                          = cache_get_field_content_int(h, "Hel");
        HouseInfo[hMusic]                        = cache_get_field_content_int(h, "Music");
        HouseInfo[hInterior]                     = cache_get_field_content_int(h, "Interior");
        HouseInfo[hInteriorType]                 = cache_get_field_content_int(h, "InteriorType");
        HouseInfo[hLock]                         = cache_get_field_content_int(h, "Lockk");
        HouseInfo[hOwned]                        = cache_get_field_content_int(h, "Owned");
        HouseInfo[hRent]                         = cache_get_field_content_int(h, "Rent");
        HouseInfo[hRentabil]                     = cache_get_field_content_int(h, "Rentabil");
        HouseInfo[hTakings]                      = cache_get_field_content_int(h, "Takings");
        HouseInfo[hLevel]                        = cache_get_field_content_int(h, "Level");
        HouseInfo[hVirtual]                      = cache_get_field_content_int(h, "Virtual");
        
           /*Incep garajele*/
        HouseInfo[gExtX]                        = cache_get_field_content_float(h, "gExtX");
        HouseInfo[gExtY]                        = cache_get_field_content_float(h, "gExtY");
        HouseInfo[gExtZ]                        = cache_get_field_content_float(h, "gExtZ");
        HouseInfo[gAngel]                       = cache_get_field_content_float(h, "gAngel");
        HouseInfo[hgaraj]                       = cache_get_field_content_int(h, "garaj");
        HouseInfo[gSlot]                        = cache_get_field_content_int(h, "gSlot");
    }
    for(new i = 1; i <= housess; i++)
    {
        OnPropTextdrawUpdate(1, i);
    }
    printf("[LOADING] %d houses loaded.", housess);
    printf("[LOADING] %d turfs loaded.", turfsss);
}

  • 0
Posted
Acum 16 ore, RazvaN. a spus:

ia frt:

 

public LoadProperty()
{
    housess = cache_num_rows();
    for(new i = 0; i <= housess; i++)
    {
        new h = i - 1;
        HouseInfo[hID]                           = cache_get_field_content_int(h, "ID");
           HouseInfo[hEntrancex]                    = cache_get_field_content_float(h, "Entrancex");
        HouseInfo[hEntrancey]                    = cache_get_field_content_float(h, "Entrancey");
        HouseInfo[hEntrancez]                    = cache_get_field_content_float(h, "Entrancez");
        HouseInfo[hExitx]                        = cache_get_field_content_float(h, "Exitx");
        HouseInfo[hExity]                        = cache_get_field_content_float(h, "Exity");
        HouseInfo[hExitz]                        = cache_get_field_content_float(h, "Exitz");
        cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
        cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
        HouseInfo[hValue]                        = cache_get_field_content_int(h, "Value");
        HouseInfo[hPrice]                        = cache_get_field_content_int(h, "Prices");
        HouseInfo[hHel]                          = cache_get_field_content_int(h, "Hel");
        HouseInfo[hMusic]                        = cache_get_field_content_int(h, "Music");
        HouseInfo[hInterior]                     = cache_get_field_content_int(h, "Interior");
        HouseInfo[hInteriorType]                 = cache_get_field_content_int(h, "InteriorType");
        HouseInfo[hLock]                         = cache_get_field_content_int(h, "Lockk");
        HouseInfo[hOwned]                        = cache_get_field_content_int(h, "Owned");
        HouseInfo[hRent]                         = cache_get_field_content_int(h, "Rent");
        HouseInfo[hRentabil]                     = cache_get_field_content_int(h, "Rentabil");
        HouseInfo[hTakings]                      = cache_get_field_content_int(h, "Takings");
        HouseInfo[hLevel]                        = cache_get_field_content_int(h, "Level");
        HouseInfo[hVirtual]                      = cache_get_field_content_int(h, "Virtual");
        
           /*Incep garajele*/
        HouseInfo[gExtX]                        = cache_get_field_content_float(h, "gExtX");
        HouseInfo[gExtY]                        = cache_get_field_content_float(h, "gExtY");
        HouseInfo[gExtZ]                        = cache_get_field_content_float(h, "gExtZ");
        HouseInfo[gAngel]                       = cache_get_field_content_float(h, "gAngel");
        HouseInfo[hgaraj]                       = cache_get_field_content_int(h, "garaj");
        HouseInfo[gSlot]                        = cache_get_field_content_int(h, "gSlot");
    }
    for(new i = 1; i <= housess; i++)
    {
        OnPropTextdrawUpdate(1, i);
    }
    printf("[LOADING] %d houses loaded.", housess);
    printf("[LOADING] %d turfs loaded.", turfsss);
}

rror 033: array must be indexed (variable "HouseInfo")

  • 0
Posted
Acum 3 ore, RazvaN. a spus:

El a vrut doar sa ia din baza de date de la ID-ul 0.

deci mai ma ajuta cineva cu problema?

  • 0
Posted
Acum 6 minute, RazvaN. a spus:

Codul corect: 

 

 

  Ascunde conținuturi

 

public LoadProperty()
{
    housess = cache_num_rows();
    for(new i = 0; i <= housess; i++)
    {
        new h = i - 1;
        HouseInfo[hID]                           = cache_get_field_content_int(h, "ID");
           HouseInfo[hEntrancex]                    = cache_get_field_content_float(h, "Entrancex");
        HouseInfo[hEntrancey]                    = cache_get_field_content_float(h, "Entrancey");
        HouseInfo[hEntrancez]                    = cache_get_field_content_float(h, "Entrancez");
        HouseInfo[hExitx]                        = cache_get_field_content_float(h, "Exitx");
        HouseInfo[hExity]                        = cache_get_field_content_float(h, "Exity");
        HouseInfo[hExitz]                        = cache_get_field_content_float(h, "Exitz");
        cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
        cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
        HouseInfo[hValue]                        = cache_get_field_content_int(h, "Value");
        HouseInfo[hPrice]                        = cache_get_field_content_int(h, "Prices");
        HouseInfo[hHel]                          = cache_get_field_content_int(h, "Hel");
        HouseInfo[hMusic]                        = cache_get_field_content_int(h, "Music");
        HouseInfo[hInterior]                     = cache_get_field_content_int(h, "Interior");
        HouseInfo[hInteriorType]                 = cache_get_field_content_int(h, "InteriorType");
        HouseInfo[hLock]                         = cache_get_field_content_int(h, "Lockk");
        HouseInfo[hOwned]                        = cache_get_field_content_int(h, "Owned");
        HouseInfo[hRent]                         = cache_get_field_content_int(h, "Rent");
        HouseInfo[hRentabil]                     = cache_get_field_content_int(h, "Rentabil");
        HouseInfo[hTakings]                      = cache_get_field_content_int(h, "Takings");
        HouseInfo[hLevel]                        = cache_get_field_content_int(h, "Level");
        HouseInfo[hVirtual]                      = cache_get_field_content_int(h, "Virtual");
        
           /*Incep garajele*/
        HouseInfo[gExtX]                        = cache_get_field_content_float(h, "gExtX");
        HouseInfo[gExtY]                        = cache_get_field_content_float(h, "gExtY");
        HouseInfo[gExtZ]                        = cache_get_field_content_float(h, "gExtZ");
        HouseInfo[gAngel]                       = cache_get_field_content_float(h, "gAngel");
        HouseInfo[hgaraj]                       = cache_get_field_content_int(h, "garaj");
        HouseInfo[gSlot]                        = cache_get_field_content_int(h, "gSlot");
    }
    for(new i = 1; i <= housess; i++)
    {
        OnPropTextdrawUpdate(1, i);
    }
    printf("[LOADING] %d houses loaded.", housess);
    printf("[LOADING] %d turfs loaded.", turfsss);
}

 

 

C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17326) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17327) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17328) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17329) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17330) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17331) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17332) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17335) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17336) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17337) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17338) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17339) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17340) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17341) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17342) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17343) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17344) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17345) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17346) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17347) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17350) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17351) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17352) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17353) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17354) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\User\Desktop\exaton\gamemodes\test2\gamemodes\ExtremeGame.pwn(17355) : error 033: array must be indexed (variable "HouseInfo")

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


26 Errors.
 

  • 0
Posted
Acum 1 minut, RazvaN. a spus:

Nu stiu ce are de nu merge cu spoiler, ia-l asa: 

Am uitat sa copiez iar codu, ia-l:

public LoadProperty()
{
    housess = cache_num_rows();
    for(new i = 0; i <= housess; i++)
    {
        new h = i - 1;
        HouseInfo[hID]                           = cache_get_field_content_int(h, "ID");
           HouseInfo[hEntrancex]                    = cache_get_field_content_float(h, "Entrancex");
        HouseInfo[hEntrancey]                    = cache_get_field_content_float(h, "Entrancey");
        HouseInfo[hEntrancez]                    = cache_get_field_content_float(h, "Entrancez");
        HouseInfo[hExitx]                        = cache_get_field_content_float(h, "Exitx");
        HouseInfo[hExity]                        = cache_get_field_content_float(h, "Exity");
        HouseInfo[hExitz]                        = cache_get_field_content_float(h, "Exitz");
        cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
        cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
        HouseInfo[hValue]                        = cache_get_field_content_int(h, "Value");
        HouseInfo[hPrice]                        = cache_get_field_content_int(h, "Prices");
        HouseInfo[hHel]                          = cache_get_field_content_int(h, "Hel");
        HouseInfo[hMusic]                        = cache_get_field_content_int(h, "Music");
        HouseInfo[hInterior]                     = cache_get_field_content_int(h, "Interior");
        HouseInfo[hInteriorType]                 = cache_get_field_content_int(h, "InteriorType");
        HouseInfo[hLock]                         = cache_get_field_content_int(h, "Lockk");
        HouseInfo[hOwned]                        = cache_get_field_content_int(h, "Owned");
        HouseInfo[hRent]                         = cache_get_field_content_int(h, "Rent");
        HouseInfo[hRentabil]                     = cache_get_field_content_int(h, "Rentabil");
        HouseInfo[hTakings]                      = cache_get_field_content_int(h, "Takings");
        HouseInfo[hLevel]                        = cache_get_field_content_int(h, "Level");
        HouseInfo[hVirtual]                      = cache_get_field_content_int(h, "Virtual");
        
           /*Incep garajele*/
        HouseInfo[gExtX]                        = cache_get_field_content_float(h, "gExtX");
        HouseInfo[gExtY]                        = cache_get_field_content_float(h, "gExtY");
        HouseInfo[gExtZ]                        = cache_get_field_content_float(h, "gExtZ");
        HouseInfo[gAngel]                       = cache_get_field_content_float(h, "gAngel");
        HouseInfo[hgaraj]                       = cache_get_field_content_int(h, "garaj");
        HouseInfo[gSlot]                        = cache_get_field_content_int(h, "gSlot");
    }
    for(new i = 0; i <= housess; i++)
    {
        OnPropTextdrawUpdate(1, i);
    }
    printf("[LOADING] %d houses loaded.", housess);
    printf("[LOADING] %d turfs loaded.", turfsss);
}

tot asa

  • 0
Posted
Acum 3 minute, Exaton a spus:

acum nu da error si cand intru pe localhost arata ca mereu daca iar vor disparea iti voi da pm ms mult de ajutor

gata am dat +1 ms mult inca o data

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.