Run time error array index out of bounds[+rep]
#6

Show define MAX_HOUSE_WEAPONS and HouseInfo enum

pawn Код:
stock FormatHouseWeapons(house, string[], s_size = sizeof(string))
{
    string[0] = EOS;

    for(new a = 1; a < MAX_HOUSE_WEAPONS; a++)
        format(string, s_size, "%s%d=%d|", string, HouseInfo[house][hWeapon][a],HouseInfo[house][hAmmo][a]);

    if(string[0])
        string[strlen(string) - 1] = EOS;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)