AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get_msg_arg_string error.. some help (https://forums.alliedmods.net/showthread.php?t=249345)

luxor 10-04-2014 10:30

get_msg_arg_string error.. some help
 
hi alliedmodders, i have a problem with this function..

amxx gives me this error : http://i.gyazo.com/da646ccb1bf644588a837cfc6ef93e08.png
i don`t know what is the problem.

this is my code : http://i.gyazo.com/170a0d0f8f2d04124a9cfe0d785ce682.png


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 );
        }
    }



hleV 10-04-2014 12:13

Re: get_msg_arg_string error.. some help
 
Change sz_MenuText 2nd dimension size from 32 to 33 (or MAX_PLAYERS + 1 if your AMXX version is new enough).

luxor 10-05-2014 07:52

Re: get_msg_arg_string error.. some help
 
ok, ty

Nextra 10-05-2014 09:05

Re: get_msg_arg_string error.. some help
 
Quote:

Originally Posted by hleV (Post 2207011)
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.

luxor 10-05-2014 14:45

Re: get_msg_arg_string error.. some help
 
i changed sz_MenuText[ 12 ] [ 32 ] to sz_MenuText[ 12 ] [ 33 ]... but the problem still exists

Nextra 10-05-2014 15:02

Re: get_msg_arg_string error.. some help
 
sz_MenuText[33][32]

luxor 10-05-2014 16:36

Re: get_msg_arg_string error.. some help
 
ok, I try

luxor 10-06-2014 03:27

Re: get_msg_arg_string error.. some help
 
that works. ty ty.


All times are GMT -4. The time now is 17:37.

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