Raised This Month: $ Target: $400
 0% 

set_lights (errors)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 06-06-2006 , 08:05   set_lights (errors)
Reply With Quote #1

Code:
#include <amxmodx> #include <fun> public plugin_init() {     register_cvar("amx_zbot_dark","1") public dark() {     if (get_cvar_num("amx_zbot_dark"))         {         set_hudmessage(255,255,255,-1.0,0.35,1,6.0,6.0,0.1,0.1,4);         show_hudmessage(0,"Dark Mode has been ENABLED!");         set_lights("c");     }         else if(get_cvar_num("amx_zbot_dark"))         {         set_hudmessage(255,255,255,-1.0,0.35,1,6.0,6.0,0.1,0.1,4);         show_hudmessage(0,"Dark Mode has been DISABLED!");         set_lights("#OFF")     }     return PLUGIN_HANDLED }
thats just a bit of my mod i'm working on and i compiled it but i get 2 errors to do wiht the "set_lights" parts
btw, i'm trying to make one team have night vision goggles at the start of the game and i tried to use give_item but soon found out that there was no command for it...
__________________
It's a mystery.
Mini_Midget is offline
Werewolf
Senior Member
Join Date: Jan 2006
Location: Sweden
Old 06-06-2006 , 08:23  
Reply With Quote #2

Well what's the errors? We can't help you if we don't know which the errors are.
__________________
~~~~~Hawk~~~~~
Werewolf is offline
NewUser
Member
Join Date: Mar 2006
Location: over there
Old 06-06-2006 , 11:36  
Reply With Quote #3

Code:
#include <engine>
__________________
LEWL.
NewUser is offline
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 06-07-2006 , 01:40  
Reply With Quote #4

Quote:
Originally Posted by NewUser
Code:
#include <engine>
OMG! i forgot about the includes...
thxs for that, works fine now
__________________
It's a mystery.
Mini_Midget 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 16:27.


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