AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Not working :/ (https://forums.alliedmods.net/showthread.php?t=213962)

Podarok 04-21-2013 10:14

Not working :/
 
Why isnt it working ?
Code:
register_forward(FM_CmdStart, "fwd_CmdStart")
Code:
public fwd_CmdStart(id, handle) {     if (!is_user_connected(id))         return             if (is_user_alive(id) || zp_class_zombie_get_current(id) != g_AntidotID)         return         if (g_InfectCount[id] < antidot_count)     {         client_print(id, print_center, "Fuck you, you cant use it now");         return     }         static button     button = get_user_button(id)     if (button & IN_USE)         antidot_start(id) }

ConnorMcLeod 04-21-2013 10:15

Re: Not working :/
 
Title please.

https://forums.alliedmods.net/misc.php?do=showrules

Podarok 04-21-2013 10:19

Re: Not working :/
 
Whats wrong with my title ?

EpicMonkey 04-21-2013 10:45

Re: Not working :/
 
Quote:

Originally Posted by Podarok (Post 1937017)
Whats wrong with my title ?

Quote:

  • Use descriptive topic titles. People should know at a glance of the title what the thread is about.


Podarok 04-21-2013 10:46

Re: Not working :/
 
I cant change title of thread now. Can you help me please ? I changed code to this and it doesnt work still. nothing happens :
Code:
public fwd_CmdStart(id, handle) {     if (!is_user_connected(id))         return FMRES_IGNORED             if (is_user_alive(id) || zp_class_zombie_get_current(id) != g_AntidotID)         return FMRES_IGNORED         if (g_InfectCount[id] < antidot_count)     {         client_print(id, print_center, "Fuck you, you cant use it now");         return FMRES_IGNORED     }         static button     button = get_uc(handle,UC_Buttons)     if (button & IN_USE)         antidot_start(id)             return FMRES_HANDLED }


All times are GMT -4. The time now is 10:56.

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