Raised This Month: $ Target: $400
 0% 

MemHack - Switch TeamScore


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-22-2009 , 23:34   Re: MemHack - Switch TeamScore
Reply With Quote #5

I wish I could help you with the MemHack stuff, but I don't know much about it. I have a few suggestions, though:

1.
Code:
if (sTeam = CS_TEAM_T || sTeam = CS_TEAM_CT) {
This code will assign a value to sTeam instead of check it. You should use == instead of =.

2. check_team doesn't do much in the way that you use. It will return a value, but nothing else will happen. You probably want to do something like
Code:
if(!check_team(sTeam)) return 0;
to stop the function if the team is invalid. Also, you'll want to add
Code:
return 0
to the end of the check_team function.

3. You don't need to redefine team and score as sTeam and sScore at the top of your functions, you can just reference team and score. But maybe you have another reason for doing this.

4. You should be able to start your own listen server to test the plugin if you don't want to test it on your live server.

Best of luck. Cheers!
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
 



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 01:52.


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