Raised This Month: $ Target: $400
 0% 

simple reset score log


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
slypire
Junior Member
Join Date: May 2013
Old 08-10-2013 , 03:15   simple reset score log
Reply With Quote #1

Hi guys, i made one simple plugin for /rs, /resetscore and I get next log:

Code:
L 08/10/2013 - 00:52:53: [AMXX] Displaying debug trace (plugin "explosion_rs.amxx")
L 08/10/2013 - 00:52:53: [AMXX] Run time error 10: native error (native "cs_set_user_deaths")
L 08/10/2013 - 00:52:53: [AMXX]    [0] explosion_rs.sma::cmdReset (line 25)
L 08/10/2013 - 00:54:20: Invalid player id 128

there is a .sma

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <colorchat>

#define PLUGIN "rs basic"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /resetscore""cmdReset")
    
register_clcmd("say /restartscore""cmdReset")
    
register_clcmd("say /rs""cmdReset")
    
    
register_clcmd("say_team /resetscore""cmdReset")
    
register_clcmd("say_team /restartscore""cmdReset")
    
register_clcmd("say_team /rs""cmdReset")
    
}

public 
cmdReset(id){
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
    
ColorChat(idGREEN"^4[Resete Score] ^1Uspesno ste resetovali skor!")    
    

And line 25 is cs_set_user_deaths(id, 0) first time ..
thanks

Last edited by slypire; 08-10-2013 at 03:15.
slypire 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 15:57.


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