Raised This Month: $51 Target: $400
 12% 

amx_super 3.4 Resolved


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 06-09-2007 , 07:31   amx_super 3.4 Resolved
Reply With Quote #1

Hello, your latest version gives lots of errors when compiling.
Besides, when i try to use godmode or teamswap it says [amx]???!!!.
Can you check the code please.
Thank you for your time

Last edited by bmann_420; 06-09-2007 at 23:17.
shustas is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 06-09-2007 , 12:53   Re: amx_super 3.4 many errors
Reply With Quote #2

I'm not getting any errors compiling it...
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 06-09-2007 , 13:34   Re: amx_super 3.4 many errors
Reply With Quote #3

well it says warning, besides try to use amx_swapteam it gives you [amx]???, godmode the same.
shustas is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 06-09-2007 , 13:39   Re: amx_super 3.4 many errors
Reply With Quote #4

Though I'm not sure what you mean by [amx]???, that warning is a loose indentation warning. Means someone pressed tab too many times.
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 06-09-2007 , 14:23   Re: amx_super 3.4 many errors
Reply With Quote #5

yes loose indentation, when you try to use amx_teamswap it gives you [amx]???? as well as logs error log, same thing with godmode. Try it, maybe its only my plugin problem.
shustas is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 06-09-2007 , 15:19   Re: amx_super 3.4 many errors
Reply With Quote #6

I tested godmode about ermm, 28 times along with the transfer, since I made some adjustments. if your gettin ????'s make sure yoru multilingual is not in Chinese. (double check the .txt, make sure its updated) ANd that 1 Loose Indentation error, is non fixable, trust me I tried. I put 1 tab on that line, i end up with 20 more indentation errors. But anyway, their shouldnt be any issues with this from what your saying. As in their could be issues, but your issues are more on you.

-Make sure you have the New amx_super.txt file
-1 loose indentation error = doesnt do anything to the code whatsoever ina way shape, fashion or form
-The errors your getting in your logs, i need to see them (I dont have any and im even using 3.5 for testing)

Example of Chinese Multilingual:
Code:
AMX_SUPER_HEAL_TEAM_CASE2 = [AMXX] ??? %s ?? %d ??? %s ??
AMX_SUPER_HEAL_TEAM_CASE1 = [AMXX] ????? %d ??? %s ??
AMX_SUPER_HEAL_PLAYER_CASE2 = [AMXX] ??? %s ?? %s ???? %d
AMX_SUPER_HEAL_PLAYER_CASE1 = [AMXX] ????? %s ???? %d
AMX_SUPER_HEAL_TEAM_LOG = [AMX_Super] ??: ^"%s<%s>^" ? ^"%s^" ??? %d ???
AMX_SUPER_HEAL_PLAYER_LOG = [AMX_Super] ??: ^"%s<%s>^" ??? %d ???? ^"%s<%s>^" 
AMX_SUPER_HEAL_TEAM_MSG = [AMXX] ?? %d ???? %s
AMX_SUPER_HEAL_PLAYER_MSG = [AMXX] ?? %d ???? %s
I dunno if i copied an pasted it right or what, but thats how it came out. (had to copy it to notepad, then paste it to the wordpad for .txt)
__________________

Last edited by bmann_420; 06-09-2007 at 15:23.
bmann_420 is offline
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 06-09-2007 , 15:35   Re: amx_super 3.4 many errors
Reply With Quote #7

Ok, is it ok if i delete all other lang in super.txt and leave only english?
My error logs only amx_super thats it no details. As i said when i use swapteam its says amx????? so i think its language problem.

So can i modify txt and leave only english?

Last edited by shustas; 06-09-2007 at 16:16.
shustas is offline
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 06-09-2007 , 16:42   Re: amx_super 3.4 many errors
Reply With Quote #8

OK, i have modified txt and now its ok. Sorry for the trouble i made.
Thanks for the great plugin.
shustas is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 06-09-2007 , 17:31   Re: amx_super 3.4 many errors
Reply With Quote #9

lol No worries, knew you would figure it out tho
__________________
bmann_420 is offline
travo
Senior Member
Join Date: Aug 2006
Old 06-10-2007 , 19:17   Re: amx_super 3.4 Resolved
Reply With Quote #10

this will solve the loose id error

Code:
////////////////////////////////////////////////////////////////////////////////////////////////////////////
//ADMIN GODMODE v1.0 by Bo0m!
//Revised some by Doombringer/Deviance
//==========================================================================================================
public admin_godmode(id,level,cid) 
{
    
    if (!cmd_access(id,level,cid,3))
    return PLUGIN_HANDLED
    
    new arg[32], arg2[8], name2[32]

    read_argv(1, arg, 31)
    read_argv(2, arg2, 7)

    new setting = str_to_num(arg2)

    new name[32], authid[36]
    get_user_name(id, name2, 31)
    get_user_authid(id, authid, 35)
    
    new bool:l_postRound = false;
    if(str_to_num(arg2) == 2)
    {
        arg2 = "1";
        l_postRound = true;
    }
    
    if (arg[0]=='@')
    {
        
        new players[32], inum
        
        if(!(arg[1]=='a' || arg[1]=='A' || arg[1]=='C' || arg[1]=='c' || arg[1]=='T' || arg[1]=='t'))
        inum = 0
        else
        get_players(players,inum,"")
        
        if (inum==0)
        {
            console_print(id,"%L", LANG_PLAYER, "AMX_SUPER_NO_PLAYERS")
            return PLUGIN_HANDLED
        }
        
        for(new a=0;a<inum;++a) 
        {
            if((arg[1]=='a' || arg[1]=='A') || (cs_get_user_team(players[a]) == CS_TEAM_T && (arg[1]=='T' || arg[1]=='t')) || (cs_get_user_team(players[a]) == CS_TEAM_CT && (arg[1]=='C' || arg[1]=='c')))
            {
                set_user_godmode(players[a],str_to_num(arg2))
                HasPermGod[players[a]] = l_postRound;
            }
        }
        switch(get_cvar_num("amx_show_activity"))    
        {
            case 2:    client_print(0, print_chat, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_TEAM_CASE2", name, setting, arg[1])
            case 1:    client_print(0, print_chat, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_TEAM_CASE1", setting, arg[1])
        }
        console_print(id, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_TEAM_MSG", setting, arg[1])
        log_amx("%L", LANG_SERVER, "AMX_SUPER_GODMODE_TEAM_LOG", name, authid, setting, arg[1])
    }
    else 
    {
        new authid2[36];
        
        new player = cmd_target(id, arg, 3)
        
        if(!player)
            return PLUGIN_HANDLED
        
        get_user_name(player, name2, 31)
        get_user_authid(player, authid2, 35)
        
        set_user_godmode(player,str_to_num(arg2))
        HasPermGod[player] = l_postRound;
        
        switch(get_cvar_num("amx_show_activity")) 
        {
            case 2:    client_print(0, print_chat, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_PLAYER_CASE2", name, setting, name2)
            case 1:    client_print(0, print_chat, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_PLAYER_CASE1", setting, name2)
        }

        console_print(id, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_PLAYER_MSG", setting, name2)
        log_amx("%L", LANG_SERVER, "AMX_SUPER_GODMODE_PLAYER_LOG", name, authid, setting, name2, authid2)
    }
    return PLUGIN_HANDLED
}
travo 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 08:00.


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