Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use recurse call in methodmap #535

Closed
dragokas opened this issue Dec 29, 2020 · 1 comment
Closed

Allow to use recurse call in methodmap #535

dragokas opened this issue Dec 29, 2020 · 1 comment

Comments

@dragokas
Copy link

Following code snippet raise an error in the line "this.JumpSignature":

error 105: cannot find method or property GameDataEx.JumpSignature
methodmap GameDataEx < KeyValues
{
	public GameDataEx(char[] gameconf)
	{
		char sPath[PLATFORM_MAX_PATH];
		BuildPath(Path_SM, sPath, sizeof(sPath), "gamedata/%s.txt", gameconf);
		
		KeyValues kv = new KeyValues("Games");
		if( !kv.ImportFromFile(sPath) ) {
			LogError("Failed to load \"%s.txt\" gamedata as keyvalues file.", gameconf);
			delete kv;
		}
		return view_as<GameDataEx>(kv);
	}
	
	public bool JumpSignature(char[] name, char gamename[] = "#default")
	{
		if( strcmp(gamename, "#default") == 0 )
		{
			if( this.JumpSignature("csgo") )
			{
				return true;
			}
		}
		
		// ...
	}
}

Can you allow this?

Thank you.

@peace-maker
Copy link
Member

Duplicate of #230

@peace-maker peace-maker marked this as a duplicate of #230 Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants