AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   AMX Super (https://forums.alliedmods.net/forumdisplay.php?f=111)
-   -   amx_super connect msg help (https://forums.alliedmods.net/showthread.php?t=70434)

dissonantallure 04-24-2008 21:08

amx_super connect msg help
 
In my amx_super.cfg It has an enter message where it shows players rank. Looks like this:
// The actual messages
// %name% = Users Name, %rankpos% = Users Current Rank, \n = New line

amx_enter_message "%name% has joined!\nEnjoy the Server!\nCurrent Ranking is %rankpos%"

I dont use statsx so I was wondering if theres a command where the message can show the clients gungame rank. The one that shows when you type !top10. Thanx so much!

YamiKaitou 04-24-2008 21:14

Re: amx_super connect msg help
 
That depends on how GG gets the stats. It is possible, but it would take a bit of work.

YamiKaitou 04-25-2008 00:47

Re: amx_super connect msg help
 
Okay, I saw Avalanche's post, that is exactly what we need. Now, I will attempt to put it into 3.8.1 for you sometime this weekend

dissonantallure 04-25-2008 00:51

Re: amx_super connect msg help
 
Wow thanx alot! You guys are great! Amx_super + Gungame = best server ever! :mrgreen:

YamiKaitou 04-25-2008 13:11

Re: amx_super connect msg help
 
1 Attachment(s)
I might be able to get this added to 4.0. New phrase will catch it, %ggpos%


Here is 3.8.1 editted

bmann_420 04-25-2008 15:18

Re: amx_super connect msg help
 
Thats pretty cool Yami :up:

dissonantallure 04-25-2008 19:19

Re: amx_super connect msg help
 
Lol so I cant figure out what im doing wrong and I know you like hand-fed this whole thing to me but I seem to be getting something wrong. "Name has joined! Enjoy the Server! Current Ranking is ggpos%" Thats how it shows on the screen. I tried editing amx_super.cfg
Code:

amx_enter_message "%name% has joined!\nEnjoy the Server!\nCurrent Ranking is %ggpos%"
and amx_super.sma
Code:

entermessage = register_cvar("amx_enter_message", "%name% has joined!\nEnjoy the Server!\nCurrent Ranking is %ggpos%")
what am I doing wrong? Sorry if i am annoying anyone with too many questions. ALSO, when i try to download the plugin i get this:
PHP Code:

 Plugin failed to compilePlease try contacting the author.Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX Mod X Team

/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(311) : error 017undefined symbol "ArrayCreate"
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(311) : warning 213tag mismatch
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(320) : error 017undefined symbol "ArrayPushString"
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(326) : error 017undefined symbol "ArraySort"
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(328) : error 017undefined symbol "ArraySize"
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(339) : error 017undefined symbol "ArrayGetString"
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(354) : error 017undefined symbol "ArrayGetString"
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(377) : error 017undefined symbol "ArrayGetString"
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(1690) : error 017undefined symbol "charsmax"
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(4620) : error 017undefined symbol "set_pcvar_string"
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(4640) : error 017undefined symbol "set_pcvar_string"
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(5732) : warning 204symbol is assigned a value that is never used"statsArray"
/home/groups/alliedmodders/forums/files/1/0/4/2/2/26055.attach(5732) : warning 204symbol is assigned a value that is never used"sv_password"

10 Errors.
Could not locate output file /home/groups/amxmodx/public_html/compiled3/26055.amx (compile failed). 


bmann_420 04-25-2008 23:35

Re: amx_super connect msg help
 
Dont edit the sma, thats whats the cvar is for int he .cfg

You need to compile the plugin localy with amx modx 1.8

dissonantallure 04-26-2008 01:03

Re: amx_super connect msg help
 
Ok well, I recompiled twice now and still it says: "Name has joined! Enjoy the Server! Current Ranking is ggpos%". Can anyone help?

bmann_420 04-26-2008 03:02

Re: amx_super connect msg help
 
And its in the .cfg as above ( %ggpos% ) ? If so, Yami might have made a small type in the code, as I assume he just wrote something up real fast.

dissonantallure 04-26-2008 04:59

Re: amx_super connect msg help
 
Yea I typed it exactly %ggpos%. I thought that it might be the code but he knows way more than me so i figured it was my mistake.

bmann_420 04-26-2008 06:20

Re: amx_super connect msg help
 
Well I read the code in the gg section and it looked somewhat complex of an integration. So its kinda trial and error with addition.

YamiKaitou 04-26-2008 12:30

Re: amx_super connect msg help
 
Yeah, I wrote it up at work, so I never got a chance to test it. I just copied what bmann did for the name, rankpos, and hostname. I will have to look at it, could be something as simple as a typo on my end. I will look at it later

dissonantallure 04-29-2008 06:28

Re: amx_super connect msg help
 
Sweet thanks I cant wait!

dissonantallure 04-30-2008 09:33

Re: amx_super connect msg help
 
1 Attachment(s)
Hey well I messed with your sma and got it to work so heres my tweak of your sma it works great for me let me know what you think. Edit: Ok new sma works 100% all i had to do was replace
Code:

new data[8], rankpos[8], pos

            pos = get_user_stats(id, data, data)
           
            num_to_str(pos, rankpos, 7)
           
            replace(message, 191, "%rankpos%", rankpos)

with this
Code:

new authid[36], ggpos[8];
        get_user_authid(id, authid, charsmax(authid));
        num_to_str(stats_get_position(authid), ggpos, 7);
        replace(message, 191, "%ggpos%", ggpos);

and a few other small things works great for anyone wishing to use gungame stats instead of statsx. :up:


All times are GMT -4. The time now is 19:41.

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