AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   what does this mean!? (https://forums.alliedmods.net/showthread.php?t=13811)

n0obie4life 05-30-2005 08:10

what does this mean!?
 
Code:
    register_menucmd(register_menuid("\yPara Only?"),(1<<0)|(1<<1),"count_paravotes")     register_menucmd(register_menuid("\yGrenades Only?"),(1<<0)|(1<<1),"count_grenvotes")     register_menucmd(register_menuid("\yKnives Only?"),(1<<0)|(1<<1),"count_knivesvotes")     register_menucmd(register_menuid("\yAWP Only?"),(1<<0)|(1<<1),"count_awpvotes")     register_menucmd(register_menuid("\yMP5 Only?"),(1<<0)|(1<<1),"count_mp5votes")     register_menucmd(register_menuid("\yScout Only?"),(1<<0)|(1<<1),"count_scoutvotes")     register_menucmd(register_menuid("\yShotgun Only?"),(1<<0)|(1<<1),"count_shotvotes")     register_menucmd(register_menuid("\yShields Only?"),(1<<0)|(1<<1),"count_shieldvotes")     register_menucmd(register_menuid("\yPPG Only?"),(1<<0)|(1<<1),"count_ppgvotes")

Code:
(1<<0)|(1<<1)

what does this mean? and why when i do a vote with that, it shows AWP Only? instead of the thing i defined

Code:
 public cmdvoteawp(id){         if (get_cvar_num("vote_awpvote") == 0 ) {     client_print(id,print_chat,"%L",LANG_PLAYER,"VOTE_AWP_DISABLED"); }         else if (get_cvar_num ("vote_awpvote") == 1 ) {             new Float:voting = get_cvar_float("amx_last_voting")     if (voting > get_gametime()){         client_print(id,print_chat,"%L",LANG_PLAYER,"VOTE_CASTED")         return PLUGIN_HANDLED     }     if (voting && voting + get_cvar_float("amx_vote_delay") > get_gametime()) {         client_print(id,print_chat,"%L",LANG_PLAYER,"VOTE_WAIT")         return PLUGIN_HANDLED     }     new menu_msg[256]     new name[32]     format(menu_msg,255,"%L",LANG_PLAYER,"VOTE_AWP")     new Float:votetime = get_cvar_float("amx_vote_time") + 10.0     get_user_info(id, "name", name, 31)     set_cvar_float("amx_last_voting",  get_gametime() + votetime )     show_menu(0,(1<<0)|(1<<1),menu_msg,floatround(votetime))     set_task(votetime,"check_the_awp_votes")     client_print(0,print_chat,"%L",LANG_PLAYER,"VOTE_STARTED")     choice[0]=choice[1]=0     }     return PLUGIN_HANDLED  }

n0obie4life 05-31-2005 09:19

someone.

WaZZeR++ 05-31-2005 14:33

Think i need the hole script, becase the AWP only text isny there, it in the function: check_the_awp_votes

the first thing is the keys you want to use....

n0obie4life 06-01-2005 00:13

Quote:

Originally Posted by WaZZeR++
Think i need the hole script, becase the AWP only text isny there, it in the function: check_the_awp_votes

the first thing is the keys you want to use....

you want the WHOLE script?

the link on my siggy pls...

VOTE AIO

The whole script is too big :D

WaZZeR++ 06-01-2005 15:12

Is it only on AWP, or is it on everything?

EDIT: try to change
Code:
choice[0]=choice[1]=0
to
Code:
choice[0]=0 choice[1]=0

EDIT2: you can allso try to change (1<<0)|(1<<1) to MENU_KEY_1|MENU_KEY_2

n0obie4life 06-02-2005 01:23

its on everything.

but if i split them up, it works :roll:

WaZZeR++ 06-02-2005 17:11

np...

small dont support that typ of "loop" scripting....

n0obie4life 06-02-2005 23:12

Quote:

Originally Posted by WaZZeR++
np...

small dont support that typ of "loop" scripting....

err sorry? i don't get you...so how should i do it?

WaZZeR++ 06-03-2005 09:47

this dont work, I call it "loop" scripting, dont know why, sorry if I was unclaer
choice[0]=choice[1]=0

but this will work...
choice[0]=0
choice[1]=0

n0obie4life 06-04-2005 03:03

helppp...

i tried all methods, but it just won't work..


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

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