Raised This Month: $32 Target: $400
 8% 

Error when compiling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OXYD
AlliedModders Donor
Join Date: Aug 2019
Location: pluto
Old 10-22-2020 , 18:23   Error when compiling
Reply With Quote #1

Hello!
I have 2 problems
First:
HTML Code:
public void OnClientDisconnect(int client)
{
	char WarnBhopCount[12];
	Format(WBCount, sizeof(WBCount), "%i", WarnB[client]);
	SetClientCookie(client, WBCache, WBCount);
}

public void OnClientCookiesCached(int client) 
{
		char WBCount[12] = 0; // vrac_bhop.sp(74) : warning 213: tag mismatch
		GetClientCookie(client, WBCache, WBCount, sizeof(WBCount));
		WarnB[client]  = StringToInt(WBCount);
}

public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon)
{
	
	int BhopLVL = LR_GetClientInfo(client, ST_RANK);
	
	if(WarnB[client] >= 0 && WarnB[client] < 3)
	{
		if(VIP_IsClientVIP(client) && VIP_IsClientFeatureUse(client, VIP_BHOPGLX) || BhopLVL >= 10) // Bhop
			if (IsPlayerAlive(client) && buttons & IN_JUMP && !(GetEntityFlags(client) & FL_ONGROUND) && !(GetEntityMoveType(client) & MOVETYPE_LADDER) && GetEntProp(client, Prop_Data, "m_nWaterLevel") <= 1) 
				buttons &= ~IN_JUMP;
	}
	return Plugin_Continue;
}

Can someone help me please?
__________________
ADD ME ON STEAM - https://steamcommunity.com/id/kenoxyd
89.40.104.210:27015 // COMPETITIVE SERVER
DISCORD: KENOXYD#9098

Last edited by OXYD; 10-22-2020 at 18:23.
OXYD is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-22-2020 , 19:36   Re: Error when compiling
Reply With Quote #2

Well is hard to help without the full code, there are some parts missing in this snippet.

first error
char WarnBhopCount[12];

should be
char WBCount[12];
__________________

Last edited by Marttt; 10-22-2020 at 19:38.
Marttt is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode