Raised This Month: $ Target: $400
 0% 

Help my noob code please!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 05-01-2006 , 16:20   Help my noob code please!
Reply With Quote #1

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 ! 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:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <tfcx> #define PLUGIN "NoName" #define VERSION "1.0" #define AUTHOR "hlstriker" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     return PLUGIN_CONTINUE } public ammoCheck() {     tfc_getweaponbammo ( id, TFC_WPN_SUPERNG )     If (tfc_getweaponbammo < 50)    {         tfc_setweaponbammo ( id, TFC_WPN_SUPERNG, 50)     }     return PLUGIN_CONTINUE }
hlstriker 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 05:05.


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