Raised This Month: $ Target: $400
 0% 

help me edit a script!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-04-2020 , 23:41   Re: help me edit a script!!
Reply With Quote #1

Yup, test it.

I'd add this:
PHP Code:
public client_disconnectid )
{
     
xDamageid ] = 0;

__________________
Bugsy is offline
Old 06-04-2020, 23:47
mikaelnatan13
This message has been deleted by mikaelnatan13.
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-04-2020 , 23:48   Re: help me edit a script!!
Reply With Quote #3

That code compiles fine for me.
__________________
Bugsy is offline
mikaelnatan13
Member
Join Date: Apr 2020
Old 06-04-2020 , 23:51   Re: help me edit a script!!
Reply With Quote #4

Quote:
Originally Posted by Bugsy View Post
That code compiles fine for me.
PHP Code:
#include <amxmodx>

#define PLUGIN "CS Revo: Danos causados"
#define VERSION "1.0"
#define AUTHOR "Wilian M."

//This is needed if you're using an older version of AMX-X
#define MAX_PLAYERS 32

new xMsgSync[2]
new 
xDamageMAX_PLAYERS ]

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("Damage""xOnDamage""b""2!0""3=0""4!0")    
    
    
xMsgSync[0] = CreateHudSyncObj()    
    
xMsgSync[1] = CreateHudSyncObj()
}

public 
xOnDamage(id)
{
    static 
xAttacker
    
    xAttacker 
get_user_attacker(id)
    
xDamagexAttacker ] += read_data
    
    
set_hudmessage(255000.450.5000.13.00.10.1)
    
ShowSyncHudMsg(idxMsgSync[1], "%i"xDamage [xAttacker])    
    
    if(
is_user_connected(xAttacker))
    {
        
set_hudmessage(0100200, -1.00.5500.13.00.020.02)
        
ShowSyncHudMsg(xAttackerxMsgSync[0], "%i"xDamage [xAttacker])        
    }
//you were missing this closing bracket

//And you should not have this indented
public client_disconnectid )
{
     
xDamageid ] = 0;


Last edited by Bugsy; 06-04-2020 at 23:55.
mikaelnatan13 is offline
mikaelnatan13
Member
Join Date: Apr 2020
Old 06-04-2020 , 23:52   Re: help me edit a script!!
Reply With Quote #5

like this
mikaelnatan13 is offline
mikaelnatan13
Member
Join Date: Apr 2020
Old 06-04-2020 , 23:54   Re: help me edit a script!!
Reply With Quote #6

this appears to me

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Undefined symbol "MAX_PLAYERS" on line 8
Error: Invalid array size (negative or zero) on line 10
Error: Invalid expression, assumed zero on line 36
Error: Function "client_disconnect" is not implemented on line 36
Warning: Loose indentation on line 37
Error: Expected token: "}", but found "-end of file-" on line 39

5 Errors.
Could not locate output file C:\Users\USER\AppData\Local\Temp\Rar$DIa6972. 24964\csr_danos_causados.amx (compile failed).
mikaelnatan13 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-04-2020 , 23:55   Re: help me edit a script!!
Reply With Quote #7

See above
__________________
Bugsy is offline
mikaelnatan13
Member
Join Date: Apr 2020
Old 06-04-2020 , 23:57   Re: help me edit a script!!
Reply With Quote #8

Quote:
Originally Posted by Bugsy View Post
See above
what?
mikaelnatan13 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-05-2020 , 00:00   Re: help me edit a script!!
Reply With Quote #9

I edited the code in your post.
__________________
Bugsy is offline
mikaelnatan13
Member
Join Date: Apr 2020
Old 06-05-2020 , 09:57   Re: help me edit a script!!
Reply With Quote #10

Quote:
Originally Posted by Bugsy View Post
I edited the code in your post.

but how do I separate a given time the reset count
mikaelnatan13 is offline
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 16:57.


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