Create3DTextLabel Error
#1

Hi when i try to make create3dtextlabe it give a error :S i try to fix it but no result

error:

pawn Код:
for(new i = 0; i <sizeof(HouseInfo); i++)
    {
        if(pickupid == HOUSE_PICKUP[i])
        {
          if(HouseInfo[i][hOwned] == 1)
            {
            format(string, sizeof(string), "This house is owned by: %s",HouseInfo[i][hOwner]);
                //GameTextForPlayer(playerid, string, 5000, 4);
                House[i] = Create3DTextLabel(string,0xFFFF00AA,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]+1,15,0,1);
            }
            else
            {
                format(string, sizeof(string), "This house is for sale Cost: $%d,- Level: %d",HouseInfo[i][hValue], HouseInfo[i][hLevel]);
                //GameTextForPlayer(playerid, string, 5000, 4);
                House[i] = Create3DTextLabel(string,0xFFFF00AA,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]+1,15,0,1);
                return 1;
            }
        }
    }

pawn Код:
C:\Documents and Settings\Gebruiker\Mijn documenten\GTA SA\GLRPG\gamemodes\glrpg.pwn(6248) : error 028: invalid subscript (not an array or too many subscripts): "House"
C:\Documents and Settings\Gebruiker\Mijn documenten\GTA SA\GLRPG\gamemodes\glrpg.pwn(6248) : warning 215: expression has no effect
C:\Documents and Settings\Gebruiker\Mijn documenten\GTA SA\GLRPG\gamemodes\glrpg.pwn(6248) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Gebruiker\Mijn documenten\GTA SA\GLRPG\gamemodes\glrpg.pwn(6248) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Gebruiker\Mijn documenten\GTA SA\GLRPG\gamemodes\glrpg.pwn(6248) : 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.
Line 6248
pawn Код:
House[i] = Create3DTextLabel(string,0xFFFF00AA,HouseInfo[i]hEntrancex,HouseInfo[i]hEntrancey,HouseInfo[i]hEntrancez+1,15,0,1);
Reply
#2

please help sorry for spam
Reply
#3

Try

pawn Код:
House[i] = Create3DTextLabel(string,0xFFFF00AA,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrance], HouseInfo[i][hEntrancez]+1,15,0,1);
Reply
#4

don't work :S
Reply
#5

plz?
Reply
#6

1)Don't bump!
2)After ] put ;
Reply
#7

Quote:
Originally Posted by ikarus
1)Don't bump!
2)After ] put ;
1. sorry
2. where?
Reply
#8

Try replacing HouseInfo[i] with HouseInfo[h].
Reply
#9

Quote:
Originally Posted by Razvann
Try replacing HouseInfo[i] with HouseInfo[h].
[h] = houseid?
Reply
#10

Quote:
Originally Posted by Silox
Quote:
Originally Posted by Razvann
Try replacing HouseInfo[ i] with HouseInfo[h].
[h] = houseid?
Yes, HouseInfo[ i] with HouseInfo[h]..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)