Raised This Month: $ Target: $400
 0% 

Errors With My Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 09-09-2004 , 23:27   Errors With My Plugin
Reply With Quote #1

I have my plugin which is

Code:
//--------------------------------------------------------------------------------------------------------------------------- /*UnStick : For KZ Maps * By Dizzy * * * * CVARS unstick * 0/1 * * Client Commands * /unstick * * * Description: * Puts No Clip On Client For 2 Seconds For The Client To Get Out of being stuck in * a checkpoint Teleport * * * Made For KZ Maps * * */ //--------------------------------------------------------------------------------------------------------------------------- #include <amxmodx> #include <fun> #include <engine> //--------------------------------------------------------------------------------------------------------------------------- new bool:isusingunstick = false new bool:canuseunstick = true //--------------------------------------------------------------------------------------------------------------------------- public plugin_init() {     register_plugin("UnStick","1.0","Dizzy")     register_cvar("unstick","1")     register_cvar("unstick_cooldown","60")     register_cvar("unstick_cliptime","2")     register_clcmd("/unstick","unstick")     register_event("ResetHUD","reset","b") } //--------------------------------------------------------------------------------------------------------------------------- public client_connect(id) {     isusingunstick = false     canuseunstick = true } public reset(id) {     canuseunstick = true     isusingunstick = false //--------------------------------------------------------------------------------------------------------------------------- public unstick(id) {     if(!canuseunstick) {     client_print(id, print_chat,"Sorry, you have just recently used unstick please wait until you can again")     }     if(canuseunstick) {     set_user_noclip(id, 1)     set_task(get_cvar_float("unstick_cliptime"),"disable")     }     return PLUGIN_CONTINUE } //--------------------------------------------------------------------------------------------------------------------------- public disable(id) {     set_user_noclip(id)     canuseunstick = false     set_task(get_cvar_float("unstick_cooldown"),"reenable") } public reenable(id) {     canuseunstick = true }

What it does is it give someone no clip for 2 seconds to get out of an area if there stuck like in a false kz_teleport.
You can use it once every 60 seconds!

And I get errors!

here they are

unstick.sma<54> : warning 217: loose indentation
unstick.sma<54> : error 029: incalid expression, assumed zero
unstick.sma<54> : error 017: undefined symbol "unstick"
unstick.sma<66> : error 017: undefined symbol "disable"
unstick.sma<71> : error 029: invalid expression, assumed zero
unstick.sma<71> : error 017: undefined symbol "reenable"
unstick.sma<73> : error 001: expected token: ">", but found "-end of file-"


Can anyone do this / help?! Thanks Please Re-post!
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
 



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


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