Raised This Month: $ Target: $400
 0% 

[HELP] Invalid Cvar Pointer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 05-07-2012 , 11:55   [HELP] Invalid Cvar Pointer
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new settag;
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_concmd("amx_tag","tag")
    
settag register_cvar("amx_tag","Amx #")
    
}
public 
tag(id) {
    if(
get_user_flags(id) & ADMIN_KICK) {
        new 
arg[32], name[32];
        
read_argv(1,arg,31);
        new 
player cmd_target(id,arg,3);
        
get_user_name(player,name,31);
        new 
tag_2[16];
        
get_pcvar_string(settagtag_215)
        
client_cmd(player,"name ^"%%s^"",settag,name)
    }
    else {
        
console_print(id,"You Can't Use This Command !")
    }

Error:
Quote:
L 05/07/2012 - 18:46:13: Invalid CVAR pointer
L 05/07/2012 - 18:46:13: [AMXX] Run time error 10 (plugin "Amx_Tag.amxx") (native "get_pcvar_string") - debug not enabled!
L 05/07/2012 - 18:46:13: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
akcaliberg is offline
 



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 00:19.


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