Raised This Month: $ Target: $400
 0% 

Finding an id with name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-31-2005 , 12:36  
Reply With Quote #8

Quote:
Originally Posted by v3x
Why not just use cmd_target?
|
|
|
\/

Quote:
Originally Posted by Hawk552
In the below code, how would I match the person's name with their id, if no client called the command? It says in cmd_target that someone has to have called it.
Edit: Ok it's reading the data properly, it says "[AMXX] data is Hawk" and all, but doesn't respawn the person. I made a stupid mistake and compiled a version that had this:

Code:
    register_event("TextMsg","","a","1=1","2&Game_join_te","2&Game_join_ct")

Instead of
Code:
    register_event("TextMsg","join_respawn","a","1=1","2&Game_join_te","2&Game_join_ct")

Edit again:

Now it's giving me this:

Code:
L 08/31/2005 - 08:29:56: [AMXX] [FUN] Invalid player 0 (not in-game)
L 08/31/2005 - 08:29:56: [AMXX] Debug is not enabled (plugin "cstrike\addons\amxmodx\plugins\surftools.amxx")
L 08/31/2005 - 08:29:57: [AMXX] [FUN] Invalid player 0 (not in-game)
L 08/31/2005 - 08:29:57: [AMXX] Debug is not enabled (plugin "cstrike\addons\amxmodx\plugins\surftools.amxx")
L 08/31/2005 - 08:29:57: [AMXX] [FUN] Player out of range (0)
L 08/31/2005 - 08:29:57: [AMXX] Debug is not enabled (plugin "cstrike\addons\amxmodx\plugins\surftools.amxx")
But no errors when in debug. It seems the id checker part isn't working properly either.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



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 14:33.


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