Error on compiling in 1.11.0.6603
What are the steps to reproduce this issue?
- Deploy the last version
- Compile sbpp_main.sp
What happens?
Compiler stop at the sbpp_main.sp
What were you expecting to happen?
On compiling all of the plugins.
Any logs, error output, etc.?
Compiling sbpp_main.sp ... SourcePawn Compiler 1.11.0.6603 Copyright (c) 1997-2006 ITB CompuPhase Copyright (c) 2004-2018 AlliedModders LLC
sbpp_main.sp(1826) : error 077: arrays cannot be indexed by non-integral type 'String' sbpp_main.sp(1829) : error 077: arrays cannot be indexed by non-integral type 'String' sbpp_main.sp(1903) : error 077: arrays cannot be indexed by non-integral type 'String' sbpp_main.sp(1906) : error 077: arrays cannot be indexed by non-integral type 'String'
Any other comments?
Not needed.
What versions of the software are you using?
Operating System: Linux SourceBans++ Version: last build from git SourceMod Version: 1.11.0.6603 MetaMod Version:
Current dev sourcepawn compiler have new parser and this problem has already been reported.
You still can compile with 1.10 and use with 1.11. This must work correctly.
If you want to compile anyway just wrap array indexes into view_as<int>().
if (g_FlagLetters[flags[i]-'a'] < Admin_Reservation) // error 077: arrays cannot be indexed by non-integral type 'String'
if (g_FlagLetters[ view_as<int>( flags[i]-'a' ) ] < Admin_Reservation) // No errors.
P. S. In fact, I already suggested a fix, but it was rejected.