Not loading (?)
#1

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

    }
}
Well another thing about this house system I'm almost done with it but I'm stuck right here this code compiles fine but the thing is it isn't loading anything from the file why so? even the Textlabel isn't being loaded.

Thanks.
Reply


Messages In This Thread
Not loading (?) - by DaniceMcHarley - 27.07.2014, 19:55
Re: Not loading (?) - by [XST]O_x - 27.07.2014, 20:17
Re: Not loading (?) - by DaniceMcHarley - 27.07.2014, 20:25
Re: Not loading (?) - by DaniceMcHarley - 27.07.2014, 22:16
Re: Not loading (?) - by Threshold - 27.07.2014, 23:22
Re: Not loading (?) - by DaniceMcHarley - 27.07.2014, 23:44
AW: Not loading (?) - by Threshold - 28.07.2014, 05:07
Re: Not loading (?) - by BroZeus - 28.07.2014, 05:51
Re: Not loading (?) - by Threshold - 28.07.2014, 06:46
Re: AW: Not loading (?) - by DaniceMcHarley - 28.07.2014, 10:29

Forum Jump:


Users browsing this thread: 1 Guest(s)