Raised This Month: $ Target: $400
 0% 

Saving Menu Variables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OmgHi
Junior Member
Join Date: Jan 2007
Old 02-02-2007 , 17:32   Re: Saving Menu Variables
Reply With Quote #9

Code:
new callfunc1 register_menucmd(register_menuid("ExpMenu:"),1023,"ExpMenu1Function") callfunc1 = get_func_id("ExpMenu1") //Yes, the stuff above is in the public plugin_init()... public ExpMenu1(Mage,SelectedPlayers,PlayerSelecter,ExpGod) {  new exp[32], exp1[32], exp2[32], exp3[32]  get_euser_exp(mage,exp,31)  get_euser_exp(SelectedPlayers,exp1,31)  get_euser_exp(PlayerSelecter,exp2,31)  get_euser_exp(ExpGod,exp3,31)  client_print(menuuser,print_center,"%s|%s|%s|%s|",exp,exp1,exp2,exp3)  new menuBodyp[512]  new len = format(menuBodyp,511,"ExpMenu:^n^nMenu Info^n",name,name1)  len += format(menuBodyp[len],511-len,"1. More Info^n2. Exp God Info^n^n0. Exit")  show_menu(PlayerSelecter,((1<<0)|(1<<1)|(1<<9)),menuBodyp)  return PLUGIN_HANDLED } public ExpMenu1Function(id,key) {  callfunc_begin_i(callfunc1)  callfunc_push_int(Mage,SelectedPlayers,PlayerSelecter,ExpGod)  callfunc_end()  switch(key)  {   case 0:   {    ExpMenu1MoreInfo(Mage,SelectedPlayers,PlayerSelecter,ExpGod)   }   case 1:   {    ExpMenu1ExpGod(Mage,SelectedPlayers,PlayerSelecter,ExpGod)   }   case 9:   {    return PLUGIN_HANDLED   }  }  return PLUGIN_HANDLED }

I tryed this too ...

But it says

unknown command Mage
unknown command SelectedPlayers
unknown command PlayerSelecter
unknown command ExpGod

Can someone please help me with this?
OmgHi 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:35.


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