AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   TAG Miss match (https://forums.alliedmods.net/showthread.php?t=307133)

soumyadip77 04-28-2018 03:47

TAG Miss match
 
I am getting tag mis match error please any one tell how to fix


PHP Code:

public ShowMenuPlayers(id)
{
    new 
iMenu MakePlayerMenu(id"Choose Captain:""PlayersMenuHandler");

    
menu_setpropiMenuMPROP_NUMBER_COLOR"\r" );
    
menu_displayidiMenu );
    return 
0;
}

MakePlayerMenu(idString:szMenuTitle[], String:szMenuHandler[])
{
    new 
iMenu menu_create(szMenuTitleszMenuHandler);

    new 
iPlayersMAX_NAME_LENGTH ];
    new 
iNum;
    new 
iPlayer;
    new 
szPlayerNameMAX_NAME_LENGTH ];
    new 
szUserIdMAX_PLAYERS ];

    
get_players(iPlayersiNum"h");

    for(new 
i=0iNumi++)
    {
        
iPlayer iPlayers[i];

        if (
get_user_team(iPlayer) == 3)
        {
            
get_user_name(iPlayerszPlayerName31);
            
formatex(szUserId32"%d"get_user_userid(iPlayer));
            
menu_additem(iMenuszPlayerNameszUserId0, -1);
            
        }
        
    }
    return 
iMenu;



klippy 04-28-2018 04:07

Re: TAG Miss match
 
String: is not used in AMXX, you are mixing up SourceMod and AMXX. When learning from other posts, take a look at what part of the forum is it found in.

soumyadip77 04-28-2018 04:31

Re: TAG Miss match
 
high light the LINE i cant under stand what u wnat to tell ... and i dont know SourceMod i only know AMXX

HamletEagle 04-28-2018 05:29

Re: TAG Miss match
 
Quote:

Originally Posted by soumyadip77 (Post 2589757)
high light the LINE i cant under stand what u wnat to tell ... and i dont know SourceMod i only know AMXX

Are you unable to read or what?

Code:

MakePlayerMenu(id, String:szMenuTitle[], String:szMenuHandler[])
"String:" is used in sourcemod, not amxx. Remove that.

CrAzY MaN 04-28-2018 06:35

Re: TAG Miss match
 
Still working on pubwar? xD

soumyadip77 04-28-2018 21:46

Re: TAG Miss match
 
Then what i use in replace of string

soumyadip77 04-28-2018 21:47

Re: TAG Miss match
 
Crazy in our India everyone try to make something different type of pub war :)

CrAzY MaN 04-28-2018 23:26

Re: TAG Miss match
 
Quote:

Originally Posted by soumyadip77 (Post 2589906)
Then what i use in replace of string

You can try removing "String:"

Bugsy 04-28-2018 23:31

Re: TAG Miss match
 
Quote:

Originally Posted by CrAzY MaN (Post 2589912)
You can try removing "String:"

Nothing as there is no String type in amxx, remove "String:" anywhere it is used.

HamletEagle 04-29-2018 05:19

Re: TAG Miss match
 
Quote:

Originally Posted by soumyadip77 (Post 2589906)
Then what i use in replace of string

Remove means remove, not replace. So you just remove it without putting anything in it's place.


All times are GMT -4. The time now is 04:36.

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