AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_lights (errors) (https://forums.alliedmods.net/showthread.php?t=29449)

Mini_Midget 06-06-2006 08:05

set_lights (errors)
 
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...

Werewolf 06-06-2006 08:23

Well what's the errors? We can't help you if we don't know which the errors are. :?

NewUser 06-06-2006 11:36

Code:
#include <engine>

Mini_Midget 06-07-2006 01:40

Quote:

Originally Posted by NewUser
Code:
#include <engine>

OMG! i forgot about the includes... :P
thxs for that, works fine now


All times are GMT -4. The time now is 16:27.

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