Raised This Month: $ Target: $400
 0% 

problem with ainomenu by wazzer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
themag
New Member
Join Date: Apr 2006
Old 04-09-2006 , 15:53   problem with ainomenu by wazzer
Reply With Quote #1

hello

I'm french, and my english is.....

But I need your help

Please could you just help me for this part of the plugin, to modify it, because it doesn't work

just say me the problem

Code:
/*----------------------------- Heal Menu -----------------------------*/ public cmdHealMenu( id, lvl, cid ) {      if( cmd_access( id, lvl, cid, 0 ) )           {           g_iMenuOption[id] = 0           g_iMenuSettings[id] = 0                     showHealMenu( id, g_iMenuPosition = 0 )      }      return PLUGIN_HANDLED } public showHealMenu( id, pos ) {      if( pos < 0 ) return                new i, j      new szMenuBody[MENU_SIZE]      new iCurrKey = 0      new szUserName[32]      new iStart = pos * MENU_PLAYERS      new iNum            get_players( g_iMenuPlayers, iNum )            if( iStart >= iNum )           iStart = pos = g_iMenuPosition = 0            new iLen = format( szMenuBody, MENU_SIZE-1, g_coloredMenus ? "\yHeal Menu:\R%d/%d^n\w^n" : "Heal Menu: %d/%d^n^n", pos+1, (iNum / MENU_PLAYERS + ((iNum % MENU_PLAYERS) ? 1 : 0 )) )      new iEnd = iStart + MENU_PLAYERS      new iKeys = (1<<9|1<<7)            if( iEnd > iNum )           iEnd = iNum            for( i = iStart; i < iEnd; i++ )      {           j = g_iMenuPlayers[i]           get_user_name( j, szUserName, 31 )                     //Check if the player has immunity           if( (get_user_flags(j) & ADMIN_IMMUNITY) )                {                iCurrKey++                iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "\d%d. %s^n\w", iCurrKey, szUserName )           }else           {                iKeys |= (1<<iCurrKey++)                iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "%d. %s^n", iCurrKey, szUserName )           }      }      //Check how much heal should be given      iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n8. Heal with %s^n", g_iMenuSettings[id] )            //Cheack if there is more players left      if( iEnd != iNum )           {           format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n9. %L...^n0. %L", id, "MORE", id, pos ? "BACK" : "EXIT" )           iKeys |= (1<<8)      }      else           format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n0. %L", id, pos ? "BACK" : "EXIT" )            show_menu( id, iKeys, szMenuBody, -1 )            return } public actionHealMenu( id, key ) {      switch( key )      {           case 7: {   //The switch key                ++g_iMenuOption[id]                g_iMenuOption[id] %= 4                                switch(g_iMenuOption[id]){                     case 0: g_iMenuSettings[id] = 10    //heal with 10                     case 1: g_iMenuSettings[id] = 30    //heal with 30                     case 2: g_iMenuSettings[id] = 50    //heal with 50                     case 3: g_iMenuSettings[id] = 100   //heal with 100                }                    showHealMenu( id, g_iMenuPosition )           }           case 8: showHealMenu( id, ++g_iMenuPosition ) // More Option           case 9: showHealMenu( id, --g_iMenuPosition ) // Back/Exit Option                     // Chose a Player           default:           {                new player = g_iMenuPlayers[g_iMenuPosition * MENU_PLAYERS + key]                new userid = get_user_userid(player)                              server_cmd("amx_heal #%d %s",userid,g_iMenuSettings[id])                    server_exec()           }      }      return PLUGIN_HANDLED }

I choose the player, but the menu for the options heal 10, 30 etc... is not posted. I post also the 2 plugin whole in the zip
because the remainder of the plugin has also the same problem

thanks in advance

P.S : once again sorry for my bad English
Attached Files
File Type: zip archive.zip (13.1 KB, 59 views)
themag 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 16:39.


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