Raised This Month: $51 Target: $400
 12% 

[Solved] Undefined symbol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 02-27-2016 , 05:06   [Solved] Undefined symbol
Reply With Quote #1

Ciao guys,

I got a problem with GetClientAuthID.
The compiler tells me that it's undefined symbol, but I have sourcemod.inc included, hence clients.inc included...

Do you have any idea what I am missing?

PHP Code:
#include <sourcemod>
#include <smlib>

public Action:Command_ShowVIPInfo(iClientiArgs)
{
    if (
g_hSQL == INVALID_HANDLE) {
        
LogError("Not connected to database!");
        return 
Plugin_Handled;
    }
    
    new 
String:sQuery[1024];
    new 
String:sSteamID[64];
    new 
iTimeStamp GetTime();
    
    
// VipManager.sp(42) : error 017: undefined symbol "GetClientAuthID"
    // VipManager.sp(42) : error 092: number of arguments does not match definition
    
    
if (GetClientAuthID(iClientAuthId_Steam2sSteamIDsizeof(sSteamID))) { // <----- Line 42
        
Format(sQuerysizeof(sQuery), "SELECT `To` FROM `vip` WHERE `From` <= %d AND (`To` >= %d OR `To` = 0) AND `SteamID` = '%s' ORDER BY `To` DESC"iTimeStampiTimeStampsSteamID);
        
SQL_TQuery(g_hSQLSQLTCallBack_ShowVIPInfosQueryiClient);
    }
    
    return 
Plugin_Handled;

__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 02-27-2016 , 05:34   Re: Undefined symbol
Reply With Quote #2

It's
PHP Code:
GetClientAuthId 
instead of
PHP Code:
GetClientAuthID 
__________________

Last edited by Impact123; 02-27-2016 at 05:35.
Impact123 is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 02-27-2016 , 05:36   Re: Undefined symbol
Reply With Quote #3

Quote:
Originally Posted by Impact123 View Post
It's
PHP Code:
GetClientAuthId 
instead of
PHP Code:
GetClientAuthID 
+1
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
Reply



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 18:01.


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