Raised This Month: $ Target: $400
 0% 

My CVAR Problems/and other questions.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Moe
Member
Join Date: Dec 2009
Location: GTA
Old 07-24-2010 , 00:01   My CVAR Problems/and other questions.
Reply With Quote #1

This compiles perfectly, but nothing shows up where the cvar's string should be. Not when I put it in server.cfg/amxx.cfg or change it manually. I dont know why. My guess is that the get_cvar_string can't global so it doesnt keep the cvars information.
The problematic code:
PHP Code:
#include <amxmodx>
#include <cstrike>
#define PLUGIN "Server Display"
#define VERSION "3.0"
#define AUTHOR "MoE | -hAbd-"
new website[29]
public 
plugin_init()
{
 
register_plugin(PLUGINVERSIONAUTHOR);
 
register_cvar("sd_website""awebsite");
 
get_cvar_string("sd_website"website28);
}
public 
client_putinserver()

 
set_task(1.0"Displayhud"551__"b");
}
public 
Displayhud()
{
 
set_hudmessage02550, -1.00.006.012.0);
 
show_hudmessage(0"Our Website : %s"website[28]);

My second query is my function headers sometime get errors. For example I'll get Error: Start of function body without function header on line -- and then Warning: Symbol is never used: "Displayhud" on line -- and it makes me incredibly annoyed =P So how do they work? Are their specific guidelines I'm not following? Is it just me and my program that are mentally the odd one out?

Thanks to all who help!!
Moe 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:15.


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