Help my noob code please!
Hi, could someone tell me what I screwed up on here... I am new to coding like this, I know some Pascal, Java, and Visual Basic from school... so i'm not a total noob coder :D! Anyhow, this fails to compile... it is a plugin for the mod TFC and is supposed to check the super nailguns ammo, and if it goes below 50 ammo, it should keep the ammo at 50.
Code:
|
You need to find a list of TFC events. Although they should be the same as regular HL events.
|
You don't ever set up the variable "id"
I don't know if that function is a forward or not I don't know tfc. but if you had public ammoCheck(id) it would compile |
Re: Help my noob code please!
You could try this:
Code:
|
Thanks for the replies. Even with what you posted v3x, it still compiles with errors.
Quote:
|
It compiles fine for me.
|
I think he still left out the (id) in the function header.
|
Hmm, i'm using the compiler on the amxmodx.org website. The AMXX-Studio doesn't seem to work for me.
I got the id in the function header too. |
post your current code
|
I got it working, I tested exactly what v3x has posted to compile, and that didn't work. I guess my firefox doesn't like to upload the sma files, I had to copy and paste the code to compile it.
Anyhow, the plugin works, but sometimes I see the ammo go into the 40s then shoot back up to 50. Is there a way to make it always be at 50? Thank you everyone for your help, i'm sure i'll be needing you all later on :D! I'm really motivated to learn this. |
| All times are GMT -4. The time now is 05:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.