27.07.2014, 19:55
pawn Код:
OnGameModeInit()
{
new string[40];
for(new idx = 0; idx < sizeof(HInfo); idx++)
{
format(string, sizeof(string),HOUSE_PATH, idx);
INI_ParseFile(string, "LoadHouses_%d", .bExtra = true, .extra = idx );
new labelstring[100];
switch(HInfo[idx][Owned])
{
case 0:{format(labelstring,sizeof(labelstring),"Owned: No \nPrice: %i",HInfo[idx][Price]);}
case 1:{format(labelstring,sizeof(labelstring),"Owned: Yes \n Owner: %s",HInfo[idx][Owner]);}
}
HInfo[idx][HouseLabel] = Create3DTextLabel(labelstring,0xFF0000FF,HInfo[idx][XPos],HInfo[idx][YPos],HInfo[idx][ZPos],25.0,HInfo[idx][VirtualWorld]);
}
}
Thanks.