Raised This Month: $32 Target: $400

Getting an error compiling a plugin for changing TF2 item stats

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Junior Member
Join Date: Jun 2020
Old 06-26-2020 , 22:05   Getting an error compiling a plugin for changing TF2 item stats
Reply With Quote #1

A mod by asherkin has decided to be a bit of a problem, I'm trying to get rocket jumpers with a ludicrous amount of ammo. I'm getting this error -

"tf2items_manager.sp(176) : warning 234: symbol "GetClientAuthString" is marked as deprecated: Use GetClientAuthId"

After going into the sp file I found only one occurrence of the bad symbol.
Handle:FindItem(iClient, iItemDefinitionIndex)
// Check if the player is valid
if (!IsValidClient(iClient))

// Retrieve the STEAM auth string
new String:strAuth[64];
GetClientAuthString(iClient, strAuth, sizeof(strAuth));

// Check if it's on the list. If not, try with the global settings.
new Handle:hItemArray = INVALID_HANDLE;
GetTrieValue(g_hPlayerInfo, strAuth, hItemArray);

// Check for each.
new Handle:hOutput;
hOutput = FindItemOnArray(iClient, hItemArray, iItemDefinitionIndex);
if (hOutput == INVALID_HANDLE)
hOutput = FindItemOnArray(iClient, g_hGlobalSettings, iItemDefinitionIndex);

// Done
return hOutput;

What's the proper syntax for the recommended replacement, and will it work?

Last edited by Dubswitcher; 06-26-2020 at 22:06.
Dubswitcher is offline

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 23:38.

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