Raised This Month: $ Target: $400
 0% 

get_msg_arg_string error.. some help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
luxor
Member
Join Date: Jan 2014
Old 10-04-2014 , 10:30   get_msg_arg_string error.. some help
Reply With Quote #1

hi alliedmodders, i have a problem with this function..

amxx gives me this error :
i don`t know what is the problem.

this is my code :


PHP Code:
new sz_MenuText12 ][ 32 ]; // global 
public old_style_teammenumsgdesrec )
    {
    if( 
is_user_connectedrec ) )
        {
        
get_msg_arg_string 4sz_MenuTextrec ], charsmax sz_MenuText[ ] ) );
        if( 
equalsz_MenuText[rec], Terrorist ) || equalsz_MenuText[rec], CT_Select ))
            {
            
set_task0.1"show_old_style"rec );
        }
    }

luxor is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-04-2014 , 12:13   Re: get_msg_arg_string error.. some help
Reply With Quote #2

Change sz_MenuText 2nd dimension size from 32 to 33 (or MAX_PLAYERS + 1 if your AMXX version is new enough).
__________________
hleV is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 10-05-2014 , 09:05   Re: get_msg_arg_string error.. some help
Reply With Quote #3

Quote:
Originally Posted by hleV View Post
Change sz_MenuText 2nd dimension size from 32 to 33 (or MAX_PLAYERS + 1 if your AMXX version is new enough).
MAX_PLAYERS is already defined as 33 for convenience.
__________________
In Flames we trust!
Nextra is offline
luxor
Member
Join Date: Jan 2014
Old 10-05-2014 , 07:52   Re: get_msg_arg_string error.. some help
Reply With Quote #4

ok, ty
luxor is offline
luxor
Member
Join Date: Jan 2014
Old 10-05-2014 , 14:45   Re: get_msg_arg_string error.. some help
Reply With Quote #5

i changed sz_MenuText[ 12 ] [ 32 ] to sz_MenuText[ 12 ] [ 33 ]... but the problem still exists

Last edited by luxor; 10-05-2014 at 16:39.
luxor is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 10-05-2014 , 15:02   Re: get_msg_arg_string error.. some help
Reply With Quote #6

sz_MenuText[33][32]
__________________
In Flames we trust!
Nextra is offline
luxor
Member
Join Date: Jan 2014
Old 10-05-2014 , 16:36   Re: get_msg_arg_string error.. some help
Reply With Quote #7

ok, I try
luxor is offline
luxor
Member
Join Date: Jan 2014
Old 10-06-2014 , 03:27   Re: get_msg_arg_string error.. some help
Reply With Quote #8

that works. ty ty.
luxor is offline
Reply


Thread Tools
Display Modes

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 17:37.


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