View Single Post
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 07-19-2022 , 21:58   Re: [L4D2] Infected Hud
Reply With Quote #25

Quote:
Originally Posted by Sreaper View Post
Add // in front of #pragma newdecls required or delete the line entirely.
No, that's not going to fix the errors.

Here are lines 31-32:
PHP Code:
HintIndex[2048+1];
HintEntity[2048+1]; 
If you comment out "#pragma newdecls required", those lines will still give errors because they lack any "type". It also doesn't make sense to delete that line entirely considering the whole plugin itself is written in new syntax anyway. It's better to enforce the new syntax in this case rather than telling someone to remove the requirement.

To truly fix those errors, just declare the two variables as "int".
PHP Code:
int HintIndex[2048+1];
int HintEntity[2048+1]; 
__________________
Psyk0tik is offline