View Single Post
Author Message
Mozzie4k
Junior Member
Join Date: Sep 2020
Old 05-16-2021 , 05:58   error 017: undefined symbol "client"
Reply With Quote #1

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(116ObjectValueType_Int);
    
int iClient GetClientFromAccountID(iAccountID);
    
char Name[32];
    
GetClientName(clientNamesizeof(Name));

    if(
iClient != -1)
    {    
        
int iDefIndex hParams.GetObjectVar(120ObjectValueType_Int);
        
int iPaintIndex hParams.GetObjectVar(124ObjectValueType_Int);
        
int iRarity hParams.GetObjectVar(128ObjectValueType_Int);
        
int iQuality hParams.GetObjectVar(132ObjectValueType_Int);
        
        
LogToFile(g_sLogFile"Player %L got [%u-%u-%u-%u]"iClientiDefIndexiPaintIndexiRarityiQuality);
    } 

Last edited by Mozzie4k; 05-16-2021 at 05:58.
Mozzie4k is offline