Raised This Month: $ Target: $400
 0% 

Bad Load Of My Own Plugin On Server


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

im no good wid manus but i think...
Code:
public giveStuff3(id, key)       {       new money = cs_get_user_money(id)       new frags = get_user_frags(id)       new deaths = get_user_deaths(id)     switch(key)       {           case 0:           {               if (money > 2999) {                   set_user_frags(id, frags + 3)                   cs_set_user_money(id, money - 3000, 1)               }           }           case 1:           {               if (money > 2999) {                   set_user_deaths(id, deaths - 3)                   cs_set_user_money(id, money - 3000, 1)               }           }           case 2:           {               if (money > 499) {                   set_user_gravity(id,0.5)                 cs_set_user_money(id, money - 500, 1)               }           }           case 3:           {               if (money > 399) {                   set_user_footsteps(id, 1)                 cs_set_user_money(id, money - 500, 1)             }         }       }     return PLUGIN_HANDLED; }
4 cases
BUT...
Code:
public sayMisc(id)       {       new menu[192]       new keys = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)           format(menu, 191, "\yBuy:^n\w^n1. Buy 3 Frags - 3000$^n2. Buy -3 Deaths - 3000$^n3. Buy Low Gravity - 500$^n4. Buy Silent FootSteps - 500$")       show_menu(id, keys, menu, -1, "BUY_MISC")       return PLUGIN_HANDLED   }
6 btns?

am i right?
as i said not good wid menus... but try it

change
Code:
new keys = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)
to:
Code:
new keys = (1<<0)|(1<<1)|(1<<2)|(1<<3)
??
[ --<-@ ] 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 00:04.


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