SA-MP Forums Archive
Create3DTextLabel Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Create3DTextLabel Error (/showthread.php?tid=131951)



Create3DTextLabel Error - sjvt - 05.03.2010

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);



Re: Create3DTextLabel Error - sjvt - 05.03.2010

please help sorry for spam


Re: Create3DTextLabel Error - [HiC]TheKiller - 05.03.2010

Try

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



Re: Create3DTextLabel Error - sjvt - 05.03.2010

don't work :S


Re: Create3DTextLabel Error - sjvt - 06.03.2010

plz?



Re: Create3DTextLabel Error - [MWR]Blood - 06.03.2010

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


Re: Create3DTextLabel Error - sjvt - 06.03.2010

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


Re: Create3DTextLabel Error - Razvann - 06.03.2010

Try replacing HouseInfo[i] with HouseInfo[h].


Re: Create3DTextLabel Error - sjvt - 06.03.2010

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


Re: Create3DTextLabel Error - Razvann - 06.03.2010

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]..