Raised This Month: $ Target: $400
 0% 

errors compiling


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Zenith77
Veteran Member
Join Date: Aug 2005
Old 05-03-2006 , 16:41  
Reply With Quote #2

Code:
public adminsick(id){     new arg[33], arg2[33], name, sickness[33]     read_argv(1,arg,32)     read_argv(2,arg2,32)     name = str_to_num(arg)     sickness = str_to_num(arg2)     get_user_name(id,name,32)     if(!is_user_alive(name)) return PLUGIN_HANDLED     if(is_user_connected(name)) return PLUGIN_HANDLED     if(sickness[id] == cold){         has_cold[name] = true         client_print(id,print_chat,"[RealMod] You gave %s a %s",name,sickness)     }     if(sickness[id] == flu){         has_flu[name] = true         client_print(id,print_chat,"[RealMod] You gave %s a %s",name,sickness)     }     if(sickness[id] == headache){         has_headache[name] = true         client_print(id,print_chat,"[RealMod] You gave %s a %s",name,sickness)     }     return PLUGIN_HANDLED }

You forgot to make variable sickness an array :/
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 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 05:06.


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