Raised This Month: $ Target: $400
 0% 

How to detect argument empty?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 10-25-2005 , 13:58  
Reply With Quote #3

okey... how does it know its 3? that only says argument_count...
so where do i pu the "3"?

it looks like this now
Code:
if (equali(arg1, "")) {         client_print(id, print_console, "You need a question to start a vote")         return PLUGIN_HANDLED     }     if (equali(arg2, "")) {         client_print(id, print_console, "You need at least Two answers (You typed in 0)")         return PLUGIN_HANDLED     }     if (equali(arg3, "")) {         client_print(id, print_console, "You need at least Two answers (You typed in 1)")         return PLUGIN_HANDLED     }     else {         new menubody[128], keys         if (equali(arg4, " ")) {             format(menubody, 127, "%s^n^n1. %s^n2. %s", arg1, arg2, arg3)             keys = MENU_KEY_1|MENU_KEY_2         }         if (equali(arg5, " ")) {             format(menubody, 127, "%s^n^n1. %s^n2. %s^n3. %s", arg1, arg2, arg3, arg4)             keys = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3         }         else {             format(menubody, 127, "%s^n^n1. %s^n2. %s^n3. %s^n4. %s", arg1, arg2, arg3, arg4, arg5)             keys = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4         }         for(new i = 0; i <= get_playersnum(); i++)             show_menu(i,keys,menubody,6,"voting")
how would i change that?
[ --<-@ ] Black Rose is offline
 



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 23:38.


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