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;
}
}
}
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.
House[i] = Create3DTextLabel(string,0xFFFF00AA,HouseInfo[i]hEntrancex,HouseInfo[i]hEntrancey,HouseInfo[i]hEntrancez+1,15,0,1);
House[i] = Create3DTextLabel(string,0xFFFF00AA,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrance], HouseInfo[i][hEntrancez]+1,15,0,1);
Originally Posted by ikarus
1)Don't bump!
2)After ] put ; |
Originally Posted by Razvann
Try replacing HouseInfo[i] with HouseInfo[h].
|
Originally Posted by Silox
Quote:
|