Raised This Month: $ Target: $400
 0% 

Need Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
totalcsscripting
BANNED
Join Date: Jul 2010
Old 08-04-2010 , 02:53   Need Help
Reply With Quote #1

PHP Code:
displayTelMenu(idpos)

    if (
pos 0)
        return

    
get_players(g_menuPlayers[id], g_menuPlayersNum[id])

    new 
menuBody[512]
    new 
0
    
new i
    
new name[32]
    new 
start pos 6
    
new bool:blockMenu = (is_user_alive(id) && g_menuOption[id] < 1) ? true false

    
if (start >= g_menuPlayersNum[id])
        
start pos g_menuPosition[id] = 0

    
new len format(menuBody511g_coloredMenus "\y%L\R%d/%d^n\w^n" "%L %d/%d^n^n"id"TELE_MENU"pos 1, (g_menuPlayersNum[id] / + ((g_menuPlayersNum[id] % 6) ? 0)))
    new 
end start 6
    
new keys MENU_KEY_0|MENU_KEY_8

    
if (end g_menuPlayersNum[id])
        
end g_menuPlayersNum[id]

    for (new 
startend; ++a)
    {
        
g_menuPlayers[id][a]
        
get_user_name(iname31)

        if (
blockMenu || !is_user_alive(i) || (id != && get_user_flags(i) & ADMIN_IMMUNITY))
        {
            ++
b
        
            
if (g_coloredMenus)
                
len += format(menuBody[len], 511-len"\d%d. %s^n\w"bname)
            else
                
len += format(menuBody[len], 511-len"#. %s^n"name)
        } else {
            
keys |= (1<<b)
            
            if (
is_user_admin(i))
                
len += format(menuBody[len], 511-leng_coloredMenus "%d. %s \r*^n\w" "%d. %s *^n", ++bname)
            else
                
len += format(menuBody[len], 511-len"%d. %s^n", ++bname)
        }
    }

    if (
g_menuOption[id] > 0)    // 1
    
{
        
keys |= MENU_KEY_7
        len 
+= format(menuBody[len], 511-len"^n7. To location: %d %d %d^n"g_menuOrgin[id][0], g_menuOrgin[id][1], g_menuOrgin[id][2])
    }
    else if (
g_menuOption[id])    // -1
    
{
        if (
g_coloredMenus)
            
len += format(menuBody[len], 511-len"^n\d7. %L^n\w"id"CUR_LOC")
        else
            
len += format(menuBody[len], 511-len"^n#. %L^n"id"CUR_LOC")
    } else {                    
// 0
        
keys |= MENU_KEY_7
        len 
+= format(menuBody[len], 511-len"^n7. %L^n"id"CUR_LOC")
    }

    
len += format(menuBody[len], 511-len"8. %L^n"id"SAVE_LOC")

    if (
end != g_menuPlayersNum[id])
    {
        
format(menuBody[len], 511-len"^n9. %L...^n0. %L"id"MORE"idpos "BACK" "EXIT")
        
keys |= MENU_KEY_9
    
}
    else
        
format(menuBody[len], 511-len"^n0. %L"idpos "BACK" "EXIT")

    
show_menu(idkeysmenuBody, -1"Teleport Menu")

This is a part of teleport plugin. I'm tying to mix this plugin with mines.

It works perfectly but i dont' want to use a diccionari so y convert
SAVE_LOC
CUR_LOC
TELE_MENU

into variables but still shows ML_NOTFOUND

Hel Please
totalcsscripting is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-04-2010 , 04:37   Re: Need Help
Reply With Quote #2

If you want to remove ML( I would like to know why ? ) , remove %L, remove id, remove the identifier ( "CUR_LOC" etc. ) and remove register_dictionary().
__________________
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-05-2010 , 18:25   Re: Need Help
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
If you want to remove ML( I would like to know why ? ) , remove %L, remove id, remove the identifier ( "CUR_LOC" etc. ) and remove register_dictionary().
Do as Arkshine said and then add in the %s's as usual with your variables.

new const CUR_LOC[]="mi text"
__________________
fysiks is offline
totalcsscripting
BANNED
Join Date: Jul 2010
Old 08-05-2010 , 19:00   Re: Need Help
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
Do as Arkshine said and then add in the %s's as usual with your variables.

new const CUR_LOC[]="mi text"
I still don't unerstand.

For example i have that variable

new const CUR_LOC[]="mi text"

and then this
PHP Code:
len += format(menuBody[len], 511-len"^n\d7. %L^n\w"id"CUR_LOC"
What i have to do!
totalcsscripting is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-05-2010 , 19:08   Re: Need Help
Reply With Quote #5

PHP Code:
len += format(menuBody[len], 511-len"^n\d7. %s^n\w"CUR_LOC
__________________
fysiks is offline
totalcsscripting
BANNED
Join Date: Jul 2010
Old 08-04-2010 , 11:39   Re: Need Help
Reply With Quote #6

y want the message to still appear, but i don't want to depend of a doccionary. I want to have all compiled in one plugin.

Instead of "CUR_LOC" y create a variable

new CUR_LOC[]="mi text"

but it doesn't work



thanks
totalcsscripting is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-04-2010 , 12:46   Re: Need Help
Reply With Quote #7

Why you don't want to depend of this file ? For your information, your plugin will compile without problem using ML system without any requirement. Also it helps you to modify easily a text without compiling again. Really, I don't understand what you are doing, such waste of time.
__________________

Last edited by Arkshine; 08-04-2010 at 12:49.
Arkshine is offline
totalcsscripting
BANNED
Join Date: Jul 2010
Old 08-05-2010 , 18:11   Re: Need Help
Reply With Quote #8

Quote:
Originally Posted by Arkshine View Post
Why you don't want to depend of this file ? For your information, your plugin will compile without problem using ML system without any requirement. Also it helps you to modify easily a text without compiling again. Really, I don't understand what you are doing, such waste of time.
Please answer me
totalcsscripting is offline
totalcsscripting
BANNED
Join Date: Jul 2010
Old 08-05-2010 , 19:55   Re: Need Help
Reply With Quote #9

Quote:
Originally Posted by Arkshine View Post
Why you don't want to depend of this file ? For your information, your plugin will compile without problem using ML system without any requirement. Also it helps you to modify easily a text without compiling again. Really, I don't understand what you are doing, such waste of time.
Please Help ME
totalcsscripting is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-05-2010 , 19:58   Re: Need Help
Reply With Quote #10

Quote:
Originally Posted by totalcsscripting View Post
Please Help ME
are you kidding me? I already answered your question!
__________________
fysiks is offline
Reply



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:14.


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