Displaying HUD msg to a group...
1 Attachment(s)
I'm trying to display this...
[img]http://img136.**************/img136/5194/csassault0023nu7.jpg[/img] But this is displaying for the whole CT team and my team mates stats. What I'm trying to do is make it display for the squad you are in. For eg... I'm in squad alpha and I type /stats. I want it to show the stats of everyone in squad alpha. Not any other squads, just the CT side of squad alpha. I know its somewhere in these lines... PHP Code:
The next thing is that I realized that all the squads are all linked to both teams. For eg... I'm in CT and I join squad delta. Delta - 1/5 And someone in T joins squad delta too. Delta - 2/5 How can I make it so both teams have their own group of squads so when you join one. It won't effect the other teams squad member count. Thanks for the help! |
Re: Displaying HUD msg to a group...
May be like this ?
Code:
|
Re: Displaying HUD msg to a group...
I changed it a bit...
|
Re: Displaying HUD msg to a group...
Whoa...
Thanks [ --<-@ ] Black Rose! I'm just going through your code and learning from it. Btw, why did you include fakemeta when you didn't use any functions from it? Hmm... When I test it with your version. There seems to be a runtime error when someone spawns. Code:
L 11/08/2007 - 23:29:34: [AMXX] Run time error 4: index out of bounds |
Re: Displaying HUD msg to a group...
Wich line is 164?
I never got that error... |
Re: Displaying HUD msg to a group...
164:
PHP Code:
PHP Code:
PHP Code:
|
Re: Displaying HUD msg to a group...
The error is when the function "ChooseSquad(id)" is called, then line 164. Try to make the "squad_alpha" array with 5 cells ("squad_alpha[5]").
|
Re: Displaying HUD msg to a group...
Why would you need 5 when there's only 2 teams?
Try this then. |
Re: Displaying HUD msg to a group...
Yeah, you'r right, but i don't see the problem, was a suggestion.
|
Re: Displaying HUD msg to a group...
Thanks a bundle [ --<-@ ] Black Rose!!!
I was gonna make it do all that but just needed help with this part. No more run time errors now so thats a good sign. Oh btw, is there a better way to update the stats? Or is CurWeapon properly the best choice though it only updates if YOU do something like... - Shoot - Change weapons - Reload - Action2 (Scope and stuff) |
| All times are GMT -4. The time now is 01:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.