[HELP] Get teams money
hi guys,
I'm quiet new to amxmodx scripting, but i have experience with programming. I was scripting a plugin for counter-strike, to see each players (on your team) money. But the thing is.. its only showing it for the first player, like i'm player 1 in the players[32] array and after the loop it stops. My question is, could a exp amxmodx scripter take a look into my code to see if i've done something wrong? Thx in advance Code:
|
Re: [HELP] Get teams money
There are 4 hud channels for hud messages. The last parameter of set_hudmessage is the channel and you set it to 1. So it is overwriting the last one displayed. If you do not specify (or set it to 4) it will select the next available hud channel.
Though my suggestion would be to combine all the strings into one string (each string separated by a new line ^n) and show the one string. This way you would only be using one channel instead of all 4 channels. |
Re: [HELP] Get teams money
Quote:
|
Re: [HELP] Get teams money
Quote:
|
Re: [HELP] Get teams money
The hud channels is 1, 2, 3, 4.
Quote:
|
Re: [HELP] Get teams money
Code:
native set_hudmessage(red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2,channel=4); |
Re: [HELP] Get teams money
i think because standart amxx plugins using 1 or 2 afaik. so they will not mess, and developers did standart as 4.
and if you would read description for native, you will see again about -1. PHP Code:
|
Re: [HELP] Get teams money
Good enough for me. I think I use -1 in all my plugins, I just went to the .inc file really quick to get the value (should have read the comment as you pointed out).
|
Re: [HELP] Get teams money
.inc should be updated with -1 value then.
|
Re: [HELP] Get teams money
you are right connor, post this in bugs @ amxx, as suggestion
|
| All times are GMT -4. The time now is 02:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.