Raised This Month: $ Target: $400
 0% 

Back Weapons v1.87


Post New Thread Reply   
 
Thread Tools Display Modes
Ambrosia
Senior Member
Join Date: Mar 2008
Old 08-16-2012 , 14:34   Re: Back Weapons v1.87
Reply With Quote #521

Nevermind I got the one on the first page to work with conner's player model plugin. So admin models + backweapons work just fine...don't know about stability or weather it shows on an admin though.

Last edited by Ambrosia; 08-16-2012 at 15:39.
Ambrosia is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-19-2013 , 11:10   Re: Back Weapons v1.87
Reply With Quote #522

Quote:
Originally Posted by ConnorMcLeod View Post
New version, should support m4 without silencer, model set by .ini file.

Config file :

bw_model : model to use, "models/backweapons2.mdl" by default

bw_nosil : 0/1, use nosil or not, only models backweapons2_ns.mdl and backweapons2_css_ns.mdl supported

bw_maxweapons : max weapons you can see in a player's back (in case your server allow multiple weapons, 1 by default.


Would be usefull if someone could make condition-zero models.


19 feb 2013 : updated to v0.0.5, fixed a bug preventing plugin from working.
g_iMaxPlayers was set under the TEST_3RD define scope.
19 feb 2013 : updated to v0.0.5, fixed a bug preventing plugin from working.
g_iMaxPlayers was set under the TEST_3RD define scope.
Thanks NEXTRA for pointing the error.

Update there : https://forums.alliedmods.net/showth...30#post1303330
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-19-2013 at 11:10.
ConnorMcLeod is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-15-2013 , 08:43   Re: Back Weapons v1.87
Reply With Quote #523

ConnorMcLeod, why does your update threads direct .sma file size differs from the .sma file in the .zip? Btw, I use the direct one, it's larger but I get this error:

Code:
L 03/14/2013 - 20:01:19: [HAMSANDWICH] Invalid player 1 (not in-game)
L 03/14/2013 - 20:01:19: [AMXX] Run time error 10 (plugin "backweapon3.amxx") (native "get_pdata_cbase") - debug not enabled!
L 03/14/2013 - 20:01:19: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
I haven't tried the second one, which should I use?

Last edited by Unkolix; 03-15-2013 at 08:44.
Unkolix is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-15-2013 , 13:56   Re: Back Weapons v1.87
Reply With Quote #524

Please enable debug.

Version to use is here : http://forums.alliedmods.net/showthr...30#post1303330
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-15-2013 , 14:43   Re: Back Weapons v1.87
Reply With Quote #525

Quote:
Originally Posted by ConnorMcLeod View Post
Please enable debug.

Version to use is here : http://forums.alliedmods.net/showthr...30#post1303330
As I asked before, why does the sizes differs? I use that version you posted... When I enabled debug the error disappeared or I don't know where to look for it now...

Last edited by Unkolix; 03-15-2013 at 14:44.
Unkolix is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-15-2013 , 17:21   Re: Back Weapons v1.87
Reply With Quote #526

Which size ? Compiled plugin is about 6.6 ko

No error doesn't mean that the error won't happen again, but when it gonna happen, debug will be on so i can know which part of code contains the problem.

BTW, do you use podbot ?


Oh, if you had previous page version, i think the error hasn't been fixed in that version, i have removed it now.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-15-2013 at 17:33.
ConnorMcLeod is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-15-2013 , 17:51   Re: Back Weapons v1.87
Reply With Quote #527

Quote:
Originally Posted by ConnorMcLeod View Post
Which size ? Compiled plugin is about 6.6 ko

No error doesn't mean that the error won't happen again, but when it gonna happen, debug will be on so i can know which part of code contains the problem.

BTW, do you use podbot ?


Oh, if you had previous page version, i think the error hasn't been fixed in that version, i have removed it now.
Does that mean that the error should be gone now?

I don't use podbot.

The post you have made the update, you put backwapon3.sma directly and backweapon3.sma in zip file, they both are different sizes, the code is different... Which one should I use? The one in the ZIP seems to be smaller...

BOOM
Code:
L 03/15/2013 - 23:54:53: [HAMSANDWICH] Invalid player 1 (not in-game)
L 03/15/2013 - 23:54:53: [AMXX] Displaying debug trace (plugin "backweapon3.amxx")
L 03/15/2013 - 23:54:53: [AMXX] Run time error 10: native error (native "get_pdata_cbase")
L 03/15/2013 - 23:54:53: [AMXX]    [0] backweapon3.sma::CheckWeapons (line 217)
L 03/15/2013 - 23:54:53: [AMXX]    [1] backweapon3.sma::Primary_Holster_Post (line 192)

Last edited by Unkolix; 03-15-2013 at 18:05.
Unkolix is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-15-2013 , 20:33   Re: Back Weapons v1.87
Reply With Quote #528

There is no .amxx in the ZIP... Open your eyes

I'm not sure, but i don't think this error is important.
Could you know when it happens ? When map is changing for example ?


Try to change :

#define CHECK_PLAYER(%1) ( IsPlayer(%1) && pev_valid(%1) == 2 )

with

#define CHECK_PLAYER(%1) ( IsPlayer(%1) && is_user_connected(%1) )

and recompile sma
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-16-2013 , 02:52   Re: Back Weapons v1.87
Reply With Quote #529

Quote:
Originally Posted by ConnorMcLeod View Post
There is no .amxx in the ZIP... Open your eyes

I'm not sure, but i don't think this error is important.
Could you know when it happens ? When map is changing for example ?


Try to change :

#define CHECK_PLAYER(%1) ( IsPlayer(%1) && pev_valid(%1) == 2 )

with

#define CHECK_PLAYER(%1) ( IsPlayer(%1) && is_user_connected(%1) )

and recompile sma
Duhh.... NOT .amxx

[IMG]http://img855.**************/img855/6263/44991846.png[/IMG]
Unkolix is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-16-2013 , 04:00   Re: Back Weapons v1.87
Reply With Quote #530

ah, sma from zip, don't use it.
Use the sma you can compile from site, error should be gone.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-16-2013 at 04:00.
ConnorMcLeod is offline
Reply



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 03:28.


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