View Single Post
Author Message
Dubswitcher
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))
return INVALID_HANDLE;

// 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