NS co experience boost plugin problems
Im trying to write a plugin that will check the total deaths of each team in a combat map and if there is a big gap boost the losing teams experience. I cant get this to compile:
Code:
line 59 error 029: invalid expression, assumed zero line 59 warning 215: expression has no effect line 59 error 002 expected token: ";", but found ")" line 59 error 029: invalid expression, assumed 0 line 59 fatal error 107: to many errors line 59 is Code:
i also know ill get the same errors on line 72 its basically the same. also i dont understand how to get set_task to work, i had this Code:
i thought that made xpbalance run every 60 seconds, but i commented it out to get everything else working first. my questions: 1) whats with the "error 029: invalid expression, assumed 0" error 2) whats with the "error 002 expected token: ";", but found ")"" error 3) whats wrong with the set_task line, besides the comments "//" any help is appreciated. |
Remove the = from your #defines
|
thanks, i got it all working the #defines were part of the problem. Now ive noticed another small problem, when i check the team using the class it ignores the dead players. I dont want it to ignore them.
check for alien team using the class. This is the way i have it for aliens. Code:
check for team using get_user_team function Code:
any ideas how to keep it from ignoring the dead players? |
get_user_team(id) is almost the same as ns_get_class(id), ONLY for NS
EITHER use team = entity_get_int(id,EV_INT_team) [ or pev(id,pev_team) ] team 1 = rines, 2 = aliens in MvM 1 = rines , 2 = rines2 OR: teamname[32] get_user_team(id,teamname,31) and check if teamname is equal to marine1team, alien1team, marine2team, alien2team ( names are self explaining which tam is which ) |
thanks, i used
Code:
|
| All times are GMT -4. The time now is 16:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.