A couple of *annoying* errors
#1

Код:
C:\**********.pwn(7207) : error 028: invalid subscript (not an array or too many subscripts): "Adminsz"
C:\**********.pwn(7207) : warning 215: expression has no effect
C:\**********.pwn(7207) : error 001: expected token: ";", but found "]"
C:\**********.pwn(7207) : error 029: invalid expression, assumed zero
C:\**********.pwn(7207) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
enum Adminsz
{
    aname[MAX_PLAYER_NAME],
    alevel
};
new Adminsz2[11][Adminsz];
That's up the top thar..
pawn Код:
new string2[256];
  format(string2, sizeof(string2), "**");
7207----->Adminsz[1][aname] = string2;
    format(string2, sizeof(string2), "**");
    Adminsz[2][aname] = string2;
    format(string2, sizeof(string2), "**");
    Adminsz[3][aname] = string2;
    format(string2, sizeof(string2), "**");
    Adminsz[4][aname] = string2;
    format(string2, sizeof(string2), "**");
    Adminsz[5][aname] = string2;
    format(string2, sizeof(string2), "**");
    Adminsz[6][aname] = string2;
    format(string2, sizeof(string2), "**");
    Adminsz[7][aname] = string2;
    format(string2, sizeof(string2), "**");
    Adminsz[8][aname] = string2;
In those "" s are actual names, just removed for this post. As you can see, I've tinkered with this to try and remove errors so much that I was reduced to formatting every single f'ing name


HELP PLEASE
Reply
#2

whats the 7207 line?
Reply
#3

Edited
Reply
#4

Your array is called Adminsz2, not Adminsz.

Use this:

pawn Код:
enum Adminsz2
{
    aname[MAX_PLAYER_NAME],
    alevel
};
new Adminsz[11][Adminsz2];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)