22.08.2010, 21:13
I try to make under "OnGameModeInit()" loop for 3d text on house pickup, this code
And i press F5 and i compile mode and when i join game and go on first house i dont see any text :S can someone help ? Please
pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
format(string1, sizeof(string), "[Za prodaju]\n %d$",HouseInfo[h][hValue]);
housesale = Create3DTextLabel(string1,0xFF0000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
format(string1, sizeof(string), "[Vlasnik]\n%s",HouseInfo[h][hOwner]);
Create3DTextLabel(string1,0xFF0000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
pickups++;
}
}