PDA

View Full Version : Post Compiling Errors Here Release 0.1


MagicShot
03-09-2004, 05:15
I Thought Since I notice alot of problem post with compile errors..
It would be nice to have a Central place for them..

Hope This help keep from double postings...

Post Away... hehe

MagicShot
03-09-2004, 05:17
I am Trying to compile amx_blanks.sma

and I get:


C:\HLServer\cstrike\addons\amxx\scripting\inc lude\amxmod.inc(21) : warning 203: symbol is never used: "target"
C:\HLServer\cstrike\addons\amxx\scripting\inc lude\amxmod.inc(21) : warning 203: symbol is never used: "index"


kinda strange but Got Simular error with gore too..

Any Ideas..

xeroblood
03-09-2004, 09:28
Both of these functions are in amxmod.inc and both give the above mentioned error.. for now, if you don't need those functions, just comment them out of the include file, and try compiling again...



//stock set_user_hitzones(index=0,target=0,body=255)
// return set_hitzones(body)

//stock get_user_hitzones(index,target)
// return get_hitzones()


if you notice, both index & target parameters are not used...

SniperBeamer
03-09-2004, 09:32
xeroblood:
if you do this the plugin won't work anymore

just ignore the warnings...

xeroblood
03-09-2004, 11:12
xeroblood:
if you do this the plugin won't work anymore

just ignore the warnings...

True if the plugin uses those functions, but Mine didn't so I simply removed them...

Also, I have another plugin that uses set_user_hitzones() but I cannot supply all the parameters to it (only body) so it doesn't work properly..

Johnny got his gun
03-09-2004, 11:18
Just send me a sma of a plugin that uses set_user_hitzones and Ill implement its original interface.. I wasnt sure how to use it when I remade fun module, tahts why.

SniperBeamer
03-09-2004, 13:07
http://www.amxmodx.org/forums/download.php?id=36

MagicShot
03-09-2004, 13:29
http://www.amxmodx.org/forums/download.php?id=36

Did you Edit The sma?

SniperBeamer
03-09-2004, 13:34
no

I told you to ignore this warnings

MagicShot
03-09-2004, 13:37
no

I told you to ignore this warnings

Oh when you post the Like to the Sma I though t u edited or modified it..

Sorry..

xeroblood
03-10-2004, 11:17
Just send me a sma of a plugin that uses set_user_hitzones and Ill implement its original interface.. I wasnt sure how to use it when I remade fun module, tahts why.

Can you get the original code for fun module and refer to it?? Cuz its original implementation was very powerful!! I liked and was used to it!!
(Mainly the ability to set hitzones for you against others, or others against you)

I think this function is the only thing left b4 I can release my plugin for AMXX!!!

Thx JGHG!!

SniperBeamer
03-10-2004, 14:33
OLO doesn't release the source code of the fun module
but I think JGHG has nearly finished it so it will be like the original native.

Johnny got his gun
03-11-2004, 03:20
part of new fun.inc:

/* Sets hit zones for player.
* Parts of body are as bits:
* 1 - generic
* 2 - head
* 4 - chest
* 8 - stomach
* 16 - left arm
* 32 - right arm
* 64 - left leg
* 128 - right leg
* Set index to a player's index and leave target at 0 to define what bodyparts this player can hit when he is firing.
* Set index to 0 and target to a player's index to define what bodyparts on player other players can hit when they are firing.
* Set both index and target to 0 to define globally what bodyparts people can hit and what bodyparts can be hit when firing. */
native set_user_hitzones(index = 0, target = 0, body = 255);

/* Get user hitzones.
* To get what bodyparts a player can hit when firing, set the player's index to index and target to 0.
* To get what bodyparts other players can hit when firing at player, set index to 0 and target to player's index. */
native get_user_hitzones(index, target);

is this the right interface?

MagicShot
03-11-2004, 07:55
jghg,

That look about right, I cant see anything wrong with it, grantwed I just woke up but looks perfect.

thanx..

xeroblood
03-11-2004, 11:31
:D Woo Hoo!!! That does look perfect!!!

Good Job!!! I can't wait to convert my plugin using it!!

MagicShot
03-11-2004, 22:28
:D Woo Hoo!!! That does look perfect!!!

Good Job!!! I can't wait to convert my plugin using it!!

I cant; wait either!!!

Now I just need to get my resusume done.