I am trying to change a plugin (not mine) and i struggle to figure out how can i make it work
iClient gives a value that looks like this
name<2><STEAM_1:1:XXXXXXXX><>
What i want is to replace it with just a nick name but i can't figure out how GetClientName work
coz i get
error 017: undefined symbol "client" error.
PHP Code:
int iAccountID = hParams.GetObjectVar(1, 16, ObjectValueType_Int);
int iClient = GetClientFromAccountID(iAccountID);
char Name[32];
GetClientName(client, Name, sizeof(Name));
if(iClient != -1)
{
int iDefIndex = hParams.GetObjectVar(1, 20, ObjectValueType_Int);
int iPaintIndex = hParams.GetObjectVar(1, 24, ObjectValueType_Int);
int iRarity = hParams.GetObjectVar(1, 28, ObjectValueType_Int);
int iQuality = hParams.GetObjectVar(1, 32, ObjectValueType_Int);
LogToFile(g_sLogFile, "Player %L got [%u-%u-%u-%u]", iClient, iDefIndex, iPaintIndex, iRarity, iQuality);
}