Enums - string arrays - 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)
+--- Thread: Enums - string arrays (
/showthread.php?tid=294049)
Enums - string arrays -
SuperViper - 30.10.2011
pawn Код:
enum factInfo
{
Rank0[20],
Rank1[20],
Rank2[20],
Rank3[20],
Rank4[20],
Rank5[20],
Rank6[20],
Division1[20],
Division2[20],
Division3[20],
Division4[20],
Division5[20],
Division6[20],
Division7[20],
Division8[20],
Divisions[8][20]
};
new Factions[MAX_FACTIONS][factInfo];
gives me certain errors
Код:
C:\Users\****\Desktop\****.pwn(2499) : error 001: expected token: "}", but found "["
C:\Users\****\Desktop\****.pwn(2500) : error 010: invalid function or declaration
C:\Users\****\Desktop\****.pwn(3439) : error 028: invalid subscript (not an array or too many subscripts): "Divisions"
C:\Users\****\Desktop\****.pwn(3439) : warning 215: expression has no effect
C:\Users\****\Desktop\****.pwn(3439) : error 001: expected token: ";", but found "]"
C:\Users\****\Desktop\****.pwn(3439) : error 029: invalid expression, assumed zero
C:\Users\****\Desktop\****.pwn(3439) : fatal error 107: too many error messages on one line
Line 2499:
Line 2500:
Line 3439:
Re: Enums - string arrays -
nitrochegs - 31.10.2011
Post the code around those lines, other lines can give another line an error
Re: Enums - string arrays -
SuperViper - 31.10.2011
No, it's definitely this. I'm not new to PAWN. Regardless, this can be deleted as I've already continued this project using several enums.