Help :s
#5

Quote:
Originally Posted by funky1234
Посмотреть сообщение
So then,
pawn Код:
stock LoadProps()
{
    new file[128],ownername[23],name[200],ownerstring[200];
    for(new i = 0; i < MAX_PROPS;i++)
    {
        format(file,sizeof(file),File,i);
        if(INI_Exist(file))
        {
            INI_Open(file);
            INI_ReadString(ownername,"Owner",23);
            INI_ReadString(name,"Name",200);
            format(PInfo[i][Owner],23,"%s",ownername);
            format(PInfo[i][Name],200,"%s",name);
            PInfo[i][XPos] = INI_ReadFloat("XPos");
            PInfo[i][YPos] = INI_ReadFloat("YPos");
            PInfo[i][ZPos] = INI_ReadFloat("ZPos");
            PInfo[i][Price] = INI_ReadInt("Price");
            PInfo[i][Ownings] = INI_ReadInt("Ownings");
            PInfo[i][World] = INI_ReadInt("World");
            PInfo[i][Owned] = INI_ReadInt("Owned");
            PInfo[i][Pickup] = CreatePickup(1273,23,PInfo[i][XPos],PInfo[i][YPos],PInfo[i][ZPos],PInfo[i][World]);
            if(PInfo[i][Owned] == 1)
            {
                format(ownerstring,sizeof(ownerstring),""lyellow2"Prop name: %s \nOwner: %s \nCost: %i \nOwnings: %i \nProperty id: %i",PInfo[i][Name],PInfo[i][Owner],PInfo[i][Price],PInfo[i][Ownings],i);
                PropLabel[i] = Create3DTextLabel(ownerstring,white,PInfo[i][XPos],PInfo[i][YPos],PInfo[i][ZPos]+0.7,PROP_DEFAULT_LABEL_DISTANCE,PInfo[i][World]);
            }
            else
            {
                format(ownerstring,sizeof(ownerstring),""lyellow2"Prop name: %s \nOwner: None \nCost: %i \nOwnings: %i \nProperty id: %i",PInfo[i][Name],PInfo[i][Price],PInfo[i][Ownings],i);
                PropLabel[i] = Create3DTextLabel(ownerstring,white,PInfo[i][XPos],PInfo[i][YPos],PInfo[i][ZPos]+0.7,PROP_DEFAULT_LABEL_DISTANCE,PInfo[i][World]);
            }
            INI_Close();
            PropCount++;
            SetGVarInt("Pickups",GetGVarInt("Pickups")+1);
        }
    }
    printf("Loaded properties: %i",PropCount);
    return 1;
}
Is causing issues. Does it print "Loaded properties.."?
Yes, but it freezes there instead of continue with like y_ini updates stuff, like it normaly should do.
Reply


Messages In This Thread
Help :s - by FireCat - 09.10.2011, 19:02
Re: Help :s - by Ash. - 09.10.2011, 19:11
Re: Help :s - by FireCat - 09.10.2011, 19:13
Re: Help :s - by Ash. - 09.10.2011, 19:18
Re: Help :s - by FireCat - 09.10.2011, 19:20
Re: Help :s - by Ash. - 09.10.2011, 19:24
Re: Help :s - by FireCat - 09.10.2011, 19:25
Re: Help :s - by Ash. - 09.10.2011, 19:27
Re: Help :s - by Zh3r0 - 09.10.2011, 19:28
Re: Help :s - by Ash. - 09.10.2011, 19:29

Forum Jump:


Users browsing this thread: 2 Guest(s)