Raised This Month: $ Target: $400
 0% 

PbGetRepeatedFieldCount::Native is not bound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Electr000999
Senior Member
Join Date: Aug 2011
Old 07-30-2015 , 07:29   PbGetRepeatedFieldCount::Native is not bound
Reply With Quote #1

Hi dev's, L4D not support protobuf?

Code:
#pragma	semicolon 1

#include <sourcemod>

#pragma newdecls required

public void OnPluginStart()
{
	HookUserMessage(GetUserMessageId("VGUIMenu"), VGUIMenu);
}

public Action VGUIMenu(UserMsg msg_id, Protobuf msg, const int[] players, int playersNum, bool reliable, bool init)
{
	char tx[256];
	BfReadString(msg, tx, sizeof(tx));
	LogError("VGUIMenu sended %s", tx, playersNum);
	
	LogError("VGUIMenu:: DATA GET subkeys");
	int elements = PbGetRepeatedFieldCount(msg, "subkeys");
	LogError("VGUIMenu:: DATA GET subkeys %i", elements);
	
}
I get error [SM] Plugin encountered error 21: Native is not bound on line with PbGetRepeatedFieldCount..

and how if it read subkeys? if i cannot get count from PbGetRepeatedFieldCount.

Last edited by Electr000999; 07-30-2015 at 07:38.
Electr000999 is offline
Send a message via Skype™ to Electr000999
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-30-2015 , 09:17   Re: PbGetRepeatedFieldCount::Native is not bound
Reply With Quote #2

As far as I know, Protobuffers are only used in CS:GO and DOTA2. The rest use Bitbuffers (the BfRead / BfWrite classes).
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-30-2015 at 09:18.
Powerlord is offline
Reply



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 19:09.


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