Raised This Month: $ Target: $400
 0% 

get_user_name help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 02-03-2010 , 17:11   get_user_name help
Reply With Quote #1

I wrote out this thing and for some reason when id use it, itd say the killer of the victim has died, and not the person thats died him/herself. So i added victim and killer, and it doesnt compile..

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#include <cstrike>
#include <csx>


public plugin_precache()
{
    
precache_sound("misc/chucky1.wav")
}

public 
plugin_init()
{
    
register_plugin("move","r4nDoMz","1.0")
    
register_event("client_death","client_death","a")
}

public 
client_death(id)
{    
    new 
weapon get_user_weapon(id)
    new 
Killer read_data(1)
    new 
Victim read_data(2)

    if(
weapon == CSW_KNIFE)
    {
        
get_user_name(Victim)
        
get_user_name(Killer)
        
client_print(0print_center"%s killed %s with a knife!!!"KillerVictim)     
        
client_cmd(0,"spk sound/misc/chucky1.wav")
    }
    else
    {
        
get_user_name(Killer)
        
get_user_name(Victim)
        
client_print(0print_chat"Player %s was killed by %s!!!"VictimKiller
    }

PHP Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// knifelol.sma
// C:\Documents and Settings\nick\Desktop\compiler1\knifelol.sma(28) : error 088
number of arguments does not match definition
// C:\Documents and Settings\nick\Desktop\compiler1\knifelol.sma(29) : error 088
number of arguments does not match definition
// C:\Documents and Settings\nick\Desktop\compiler1\knifelol.sma(35) : error 088
number of arguments does not match definition
// C:\Documents and Settings\nick\Desktop\compiler1\knifelol.sma(36) : error 088
number of arguments does not match definition
//
// 4 Errors.
// Could not locate output file C:\Documents and Settings\nick\Desktop\compiler1
\compiled\knifelol.amx (compile failed).
//
// Compilation Time: 0.42 sec
// ----------------------------------------

Press enter to exit ... 
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME
r4ndomz is offline
Send a message via Skype™ to r4ndomz
 



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


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