[HOW TO] Frag count
I searched and i found something, but not exactly what i need. I tried to improvise and when i compile code it register these warnings:
/tmp/textQvOx9E.sma(8) : error 017: undefined symbol "register_plugin" /tmp/textQvOx9E.sma(8) : warning 215: expression has no effect /tmp/textQvOx9E.sma(8) : warning 215: expression has no effect /tmp/textQvOx9E.sma(8) : error 001: expected token: ";", but found ")" /tmp/textQvOx9E.sma(8) : error 029: invalid expression, assumed zero Im learning pawn. So, for practise Im trying to make plugin which will count user frags/kills. If number of frags/kills isn't bigger than 5 plugin will stop further action and if is opposite, hud message will be activated. This is code: Code:
#include <amxmodx> |
Re: [HOW TO] Frag count
1. It looks like you are not using correct include files.
2. I didn't get any of the errors you had. Only different ones. 3. Your global array is too small. 4. Your global array is never used. 5. There is no point to adding one to a variable that is set immediately before it. 6. For the other advice, I will suggest you see how I would do it: PHP Code:
|
Re: [HOW TO] Frag count
Tnx. I think i understand.
What if i want to make plugin. For example: I want to plugin check something and if statement isnt met, plugin will stop. If statement is met, plugin will continue with further action. Something like this: Code:
if(test1 != test2) |
Re: [HOW TO] Frag count
Quote:
Quote:
|
Re: [HOW TO] Frag count
The players id is not passed to the DeathMsg forward that way. If you need to, you can also determine if the kill was via headshot and you can get the weapon used.
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 15:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.