View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-29-2020 , 09:11   Re: the plugin gives an error when compiling! Can anyone help us ?
Reply With Quote #2

Code:
(86) : error 035: argument type mismatch (argument 3)

RegConsoleCmd("sm_bhp_reset", ResetBHP, ADMFLAG_ROOT, "Resets Brutal Pounce Count");
It's RegAdminCmd

However, SourceMod is flexible, you can avoid editing plugin source code for changing command to admin commands. Use admin_overrides.cfg configure file.
"sm_bhp_reset" "z"

Code:
(313) : error 029: invalid expression, assumed zero
(314) : error 001: expected token: ":", but found "return"
(314) : error 001: expected token: ",", but found ";


		if (GetVectorDistance(fPouncePos[pouncer], fLandedPos) < fDistance)
	{
		PrintToChat(pouncer, "\x04Fatal Jump\x01 \x03Failed!\x01 \x05(\x04%.1f\x05 / \x04%.1f\x05)", GetVectorDistance(fPouncePos[pouncer], fLandedPos), fDistance);
		return;
	}
	
	if (iPounces[pouncer] > iMaxAttempts)
	{
		PrintToChat(pouncer, "\x03Maximum Limits Reached!\x01 \x04%s\x01", (GetUserAdmin(pouncer) == INVALID_ADMIN_ID) ? ;
		return;
	}
	
	if (iPenalty[pouncer] > 0)
	{
		if (!bShowPenalty[pouncer])
		{
			PrintToChat(pouncer, "\x04Fatal Jump\x01 For \x03Please Wait!\x01");
		}
		return;
	}
You have open parentheses ( and conditional operator (?), but without expressions.
__________________
Do not Private Message @me
Bacardi is offline