Hi!
I am playing around with SourcePawn just to get an idea how to make plugins.
I ran into this "Tag mismatch" when making some small changes to a weapon allocator for the splewis retake plugin.
Seems like the mismatch occurs when using this function from the generic.sp in the retakes code.
Source (line 122):
https://github.com/splewis/csgo-reta...kes/generic.sp
Code:
/**
* Adds an integer to a menu as a string choice.
*/
stock void AddMenuInt(Menu menu, int value, const char[] display) {
char buffer[INTEGER_STRING_LENGTH];
IntToString(value, buffer, sizeof(buffer));
menu.AddItem(buffer, display);
}
Trying to use it with this call:
Code:
public void GivePistolRMenuCT(int client) {
Handle menu = CreateMenu(MenuHandler_PISTOLR_CT);
SetMenuTitle(menu, "Select a CT pistol round pistol:");
AddMenuInt(menu, pistol_choice_ct_hkp2000, "P2000");
Source (line 842):
https://github.com/tmercswims/csgo-r...rdallocator.sp
Plugin seems to work, but I am really curious about the "tag mismatch"? :-)