Raised This Month: $ Target: $400
 0% 

help me plz


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sb123
Senior Member
Join Date: Jan 2007
Old 02-02-2007 , 05:50   help me plz
Reply With Quote #1

L 02/02/2007 - 03:47:05: Invalid player id 102
L 02/02/2007 - 03:47:05: [AMXX] Run time error 10 (plugin "quake_like.amxx") (native "client_cmd") - debug not enabled!
L 02/02/2007 - 03:47:05: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

http://w3arcade.net/quake_like.sma

ths...
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
dutchmeat
Senior Member
Join Date: Sep 2006
Old 02-02-2007 , 06:13   Re: help me plz
Reply With Quote #2

enable debugging on that plugin, we can't see which client_cmd is invalid.

edit you could try this:

Code:
#include <amxmodx> readSettings( ) {    new flags[12]    get_cvar_string( "amx_q3_mode" , flags ,11)    return read_flags( flags ) } public client_putinserver(id) {    if ( readSettings( ) & 8 ) {       set_task ( 2.0 , "enterMsg" , id )    }    return PLUGIN_CONTINUE } public enterMsg (id){ if (is_user_connected(id))   client_cmd( id , "spk q3/enter" ) } public client_disconnect(id) {   if ( readSettings( ) & 16)       client_cmd(0,"spk q3/leave")   return PLUGIN_CONTINUE } public newRound ( ) {    new roundtime = floatround( get_cvar_float("mp_roundtime") * 60.0 )    if ( roundtime == read_data(1) && readSettings( ) & 4 )           client_cmd(0,"spk q3/prepare")    return PLUGIN_CONTINUE } public makeDamage( victim ) {    new wpn, hitzone,  attacker = get_user_attacker(victim,wpn,hitzone)    if ( !attacker ) return    new teamA = get_user_team ( attacker )    new teamV = get_user_team ( victim )    if ( teamV == teamA ) {       if ( readSettings( ) & 2 )           client_cmd(attacker,"spk q3/ashot1")    }    else if ( readSettings( ) & 1 )       client_cmd(attacker,"spk q3/ashot2") }   public plugin_precache() {    precache_sound( "q3/ashot2.wav" )    precache_sound( "q3/ashot1.wav" )    precache_sound( "q3/prepare.wav" )    precache_sound( "q3/enter.wav" )    precache_sound( "q3/leave.wav" )    return PLUGIN_CONTINUE }   public plugin_init() {    register_plugin ("Quake like","1.2","DanRaZor")    register_event  ("Damage"      ,"makeDamage" ,"b","2!0","3=0","4!0")    register_event  ("RoundTime"   ,"newRound"   ,"bc")    register_cvar   ("amx_q3_mode" ,"abde" )    return PLUGIN_CONTINUE }
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.

Last edited by dutchmeat; 02-02-2007 at 06:20.
dutchmeat is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 02-02-2007 , 06:27   Re: help me plz
Reply With Quote #3

check is_user_connected(attacker)
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
sb123
Senior Member
Join Date: Jan 2007
Old 02-02-2007 , 06:56   Re: help me plz
Reply With Quote #4

Not..Bomb explosion in Consoles

L 02/02/2007 - 19:006: Invalid player id 112
L 02/02/2007 - 19:006: [AMXX] Run time error 10 (plugin "quake_like.amxx") (native "client_cmd") - debug not enabled!
L 02/02/2007 - 19:006: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
jim_yang
Veteran Member
Join Date: Aug 2006
Old 02-02-2007 , 07:16   Re: help me plz
Reply With Quote #5

place this line
if(!attacker) return
with
if(!is_user_connected(attacker) || is_user_bot(attacker)) return
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
sb123
Senior Member
Join Date: Jan 2007
Old 02-02-2007 , 07:22   Re: help me plz
Reply With Quote #6

好的,我试试
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
sb123
Senior Member
Join Date: Jan 2007
Old 02-02-2007 , 07:33   Re: help me plz
Reply With Quote #7

OK....Thanks all...
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
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 00:40.


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