Raised This Month: $51 Target: $400
 12% 

[Fixed] Invalid player id, superheromod.sma - reloadAmmo


  
 
 
Thread Tools Display Modes
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 10-03-2005 , 23:00  
#11

I never posted a download, some other idiot did. Did you actually compile it? Do you even know how to compile?

I just posted this to CVS, you can download it here http://web.thekingpin.net/cgi-bin/cv...e=text%2Fplain

I am also attaching a compiled version since you prob dont know how....

oh, I hope you are using AMXX
Attached Files
File Type: zip superheromod_compiled_CVS.zip (235.2 KB, 146 views)
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
v_one
Junior Member
Join Date: Oct 2005
Old 10-04-2005 , 01:44  
#12

Ok, im still getting
Code:
L 10/03/2005 - 21:00:43: Invalid player id 0
L 10/03/2005 - 21:00:43: [AMXX] Displaying debug trace (plugin "superheromodvault.amxx")
L 10/03/2005 - 21:00:43: [AMXX] Run time error 10: native error (native "get_weaponname")
L 10/03/2005 - 21:00:43: [AMXX]    [0] superheromod.sma::reloadAmmo (line 2202)
and when you said "I Hope your using AMXX", I am using amxx1.60
v_one is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 10-04-2005 , 07:00  
#13

Alright, this is a different problem than I thought orginally now that I look closer at the error and code. Its not actually an invalid player, but an invalid weapon ID being sent to the thing.

Do you have any heroes that take away all your weapons? or something.....

regardless, I hope you can compile, heres a new top part of the function, replace it and compile.

Code:
public reloadAmmo() {     new szid[4], szdrop[4]     read_argv(1,szid,3)     read_argv(2,szdrop,3)     new id = str_to_num(szid)     new dropwpn = str_to_num(szdrop)     if (!is_user_connected(id)) return     if (gReloadTime[id] >= get_systime() - 1) return     gReloadTime[id] = get_systime()     new clip, ammo, wpn[32]     new wpnid = get_user_weapon(id, clip, ammo)     if ( wpnid == CSW_C4 || wpnid == CSW_KNIFE || wpnid == 0 ) return     if ( wpnid == CSW_HEGRENADE || wpnid == CSW_SMOKEGRENADE || wpnid == CSW_FLASHBANG) return
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
v_one
Junior Member
Join Date: Oct 2005
Old 10-04-2005 , 09:54  
#14

a little before adding this new part, i got L 10/04/2005 - 04:55:09: [FUN] Invalid player 4
L 10/04/2005 - 04:55:09: [AMXX] Displaying debug trace (plugin "superheromodvault.amxx")
L 10/04/2005 - 04:55:09: [AMXX] Run time error 10: native error (native "set_user_godmode")
L 10/04/2005 - 04:55:09: [AMXX] [0] superheromod.sma::newSpawn (line 1499)

and no i did not had any hero that takes weapons away
v_one is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 10-04-2005 , 17:37  
#15

I reposted the above bug http://forums.alliedmods.net/showthr...p=297652#45109

Please let me know if you get the error this thread is about anymore since the fix was in place. Continue discussion of the other bug in the new thread.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
 



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:22.


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