05.03.2010, 22:33
Hi when i try to make create3dtextlabe it give a error :S i try to fix it but no result
error:
Line 6248
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.
pawn Код:
House[i] = Create3DTextLabel(string,0xFFFF00AA,HouseInfo[i]hEntrancex,HouseInfo[i]hEntrancey,HouseInfo[i]hEntrancez+1,15,0,1);