Raised This Month: $ Target: $400
 0% 

(Solved) Need some help with strings array, giving error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
olj
Veteran Member
Join Date: Jun 2009
Old 09-17-2009 , 18:01   Re: (Solved) Need some help with strings array, giving error
Reply With Quote #8

Ok this works fine - the problem was in array size.

PHP Code:
public Action:HelperMenuDisplay(clientargs)
{
    new 
Handle:menu CreateMenu(HelperMenuMoveTypes);
    
SetMenuTitle(menu"Helper Menu Main Page");
    for (new 
0<=11i++)
        {
            
            
decl String:buffer[256];
            
strcopy(buffer,sizeof buffer,s_MoveTypes[i]);
            
            
AddMenuItem(menubufferbuffer);
        }
    
    
SetMenuExitButton(menutrue);
    
DisplayMenu(menuclient60);
 
    return 
Plugin_Handled;

Also, if someone can answer - how can i acces hardcoded sourcemod enumerations? Like MoveType for example. I currently have it working with usual array ( new MoveType:ArrayHere[12] ) but i wonder if i can just refer to this enum like SetEntMoveType (bla bla bla, MoveType[i]) without any extra arrays or declarations, i tried that but sadfully this wont work for me, maybe there is something i'm missing?
__________________

Last edited by olj; 09-17-2009 at 18:07.
olj 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 04:02.


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