A couple of *annoying* errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A couple of *annoying* errors (
/showthread.php?tid=88085)
A couple of *annoying* errors -
TaMeD - 24.07.2009
Код:
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
Re: A couple of *annoying* errors -
widowmkr - 24.07.2009
whats the 7207 line?
Re: A couple of *annoying* errors -
TaMeD - 24.07.2009
Edited
Re: A couple of *annoying* errors -
Weirdosport - 24.07.2009
Your array is called Adminsz2, not Adminsz.
Use this:
pawn Код:
enum Adminsz2
{
aname[MAX_PLAYER_NAME],
alevel
};
new Adminsz[11][Adminsz2];