Raised This Month: $ Target: $400
 0% 

[FUN] possible 1.70 bug?


  
 
 
Thread Tools Display Modes
Author Message
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-04-2006 , 22:07   [FUN] possible 1.70 bug?
#1

After i upgraded ( 1.60 to 1.70 ) i got this error in log

Code:
L 03/05/2006 - 03:47:43: [FUN] Item "item_nvg" failed to create
L 03/05/2006 - 03:47:43: [AMXX] Displaying debug trace (plugin "AdminCheats.amxx")
L 03/05/2006 - 03:47:43: [AMXX] Run time error 10: native error (native "give_item")
L 03/05/2006 - 03:47:43: [AMXX]    [0] AdminUtilities.sma::ammo_up (line 358)
L 03/05/2006 - 03:47:43: [AMXX]    [1] AdminUtilities.sma::handle_say (line 92)

when i used:
Code:
give_item(id, "item_nvg")
[ --<-@ ] Black Rose is offline
BAILOPAN
Join Date: Jan 2004
Old 03-04-2006 , 22:14  
#2

This code did not change at all from 1.60 to 1.70.
__________________
egg
BAILOPAN is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-04-2006 , 22:48  
#3

strange...
havent had problems with it b4

i used this func to test it
Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {     register_plugin("NVG Test", "1.0", "[ --<-@ ]")     register_clcmd("amx_nvg", "nvg_test") } public nvg_test(id) {         console_print(0, "func nvg_test called")         new arg[32]         read_argv(1, arg, 31)         new target = cmd_target(id, arg, 2)         give_item(target, "item_nvg") // line 20 }

it would still print this
Code:
func nvg_test called
L 03/05/2006 - 04:47:50: [FUN] Item "item_nvg" failed to create
L 03/05/2006 - 04:47:50: [AMXX] Displaying debug trace (plugin "NVG_Test.amxx")
L 03/05/2006 - 04:47:50: [AMXX] Run time error 10: native error (native "give_item")
L 03/05/2006 - 04:47:50: [AMXX]    [0] NVG_Test.sma::nvg_test (line 20)
[ --<-@ ] Black Rose is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-05-2006 , 03:14  
#4

Don't use that way for nvg's it was always buggy.

Use the following:
Code:
//cstrike.inc /* Does user have night vision goggles?  */ native cs_get_user_nvg(index); /* Set nvgoggles to 1 to give night vision goggles to index. Set it to 0 to remove them.  */ native cs_set_user_nvg(index, nvgoggles = 1);
VEN is offline
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 03-05-2006 , 04:05  
#5

i stumbeld upon a program that reads the game dll for registered entities. i did this just now for counter-strike and there doesn't appear to be an item for nightvision (specifically item_nvg, but there didn't seem to be any others either).
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
BAILOPAN
Join Date: Jan 2004
Old 03-05-2006 , 04:06  
#6

Nope, Kraugh is correct, there is no such item. Use the natives provided.
__________________
egg
BAILOPAN 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 07:05.


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