Array index out of bounds
#1

pawn Код:
public SaveAccount(playername[])
{
    new string3[32];
    //GetPlayerName(MAX_PLAYERS, playername, MAX_PLAYER_NAME);
    format(string3, sizeof(string3), "users/%s.ini", playername);
    new File: hFile = fopen(string3, io_write);
    if (hFile)
    {
        new var[156];
        format(var, 32, "BT=%d\n",BT[MAX_PLAYERS]);fwrite(hFile, var);
        fclose(hFile);
    }
    return 1;
}
returns error:
Quote:

error 032: array index out of bounds (variable "BT")

Reply


Messages In This Thread
Array index out of bounds - by maramizo - 27.07.2012, 06:55
Re: Array index out of bounds - by MP2 - 27.07.2012, 07:01
Re: Array index out of bounds - by Goobiiify - 27.07.2012, 07:01
Re: Array index out of bounds - by grand.Theft.Otto - 27.07.2012, 07:03
Re: Array index out of bounds - by maramizo - 27.07.2012, 07:15
Re: Array index out of bounds - by iggy1 - 27.07.2012, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)