View Single Post
enderandrew
Senior Member
Join Date: Jun 2020
Old 07-03-2020 , 22:03   Re: error 104: cannot find any methods for int
Reply With Quote #3

Thanks, that is very helpful!

As for g_iFeatures, STAMM is very modular itself where tons of other plugins add features to the base STAMM system. So the base STAMM plugin puts together arrays of those features/plugins and relevant values for them.

One more question if you don't mind:

PHP Code:
enum StammGames
{
    
GAME_UNSUPPORTED=0,
    
GAME_CSS,
    
GAME_CSGO,
    
GAME_TF2,
    
GAME_DOD,

becomes:

PHP Code:
enum struct StammGames
{
    
int GAME_UNSUPPORTED;
    
int GAME_CSS;
    
int GAME_CSGO;
    
int GAME_TF2;
    
int GAME_DOD;

Because apparently I can't keep =0. Can you still set values of the first item in an enum and incremental values?

And what does this turn into in the new syntax with the new enum struct format?

PHP Code:
new StammGames:g_iGameID
There is a later line also throwing an error:

PHP Code:
    CreateNative("STAMM_GetGame"nativelib_GetStammGame); 
My final compilation errors are all related to StammGames.

Last edited by enderandrew; 07-03-2020 at 22:20.
enderandrew is offline