Help a newb with bad code?
This is my first attempt at a plugin (and c++). It probably is all wrong, but I would like to know what I need to fix.
I want this plugin to give players a start health and extra health for kills. When I try to compile, i get this error a whole bunch of times: "error 075: input line too long" Any and all help will be appreciated. =] PHP Code:
|
Re: Help a newb with bad code?
Is that the entire code? If it is, the you need to use plugin_init routine.
Code:
|
Re: Help a newb with bad code?
oops. it didnt copy that part. yes i have it. thanks =]
|
Re: Help a newb with bad code?
It still doesnt work and I cant find an issue...
=( |
Re: Help a newb with bad code?
AMXX plugins are not written in C++, but Pawn. This compiles.
Code:
|
Re: Help a newb with bad code?
Thank you very much! =]
|
Re: Help a newb with bad code?
/home/groups/amxmodx/tmp3/phpk15jQf.sma(43) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpk15jQf.sma(48) : error 029: invalid expression, assumed zero /home/groups/amxmodx/tmp3/phpk15jQf.sma(48) : error 029: invalid expression, assumed zero /home/groups/amxmodx/tmp3/phpk15jQf.sma(48) : warning 215: expression has no effect /home/groups/amxmodx/tmp3/phpk15jQf.sma(48) : error 001: expected token: ";", but found "if" /home/groups/amxmodx/tmp3/phpk15jQf.sma(48) : fatal error 107: too many error messages on one line =O =[ |
Re: Help a newb with bad code?
Nope, it definitely compiles.
|
| All times are GMT -4. The time now is 05:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.