Raised This Month: $ Target: $400
 0% 

tag problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 12-23-2009 , 15:41   tag problem
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() 
{
    
register_event("DeathMsg""DeathMsg""a");
}
public 
DeathMsg()
{
    new 
attacker read_data(1);
    new 
bool:headshot read_data)
    
    if(
headshot)
    {
        if(
is_user_alive(attacker))
        {
            new 
old_hp get_user_health(attacker)
            
set_user_health(attackerold_hp 50)
            
give_itemattacker"weapon_hegrenade" );
        }
    }
    else
    {
        if(
is_user_alive(attacker))
        {
            new 
old_hp get_user_health(attacker)
            
set_user_health(attackerold_hp 10)
        }
    }

PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX Mod X Team

Warning
Tag mismatch on line 21
Header size
:            272 bytes
Code size
:              604 bytes
Data size
:              152 bytes
Stack
/heap size:      16384 bytesestimated maxusage=778 cells (3112 bytes)
Total requirements:   17412 bytes

1 Warning
.
Done
WTF?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-23-2009 , 15:49   Re: tag problem
Reply With Quote #2

read_data(3) on DeathMsg returns an int, not a bool.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 12-23-2009 , 15:50   Re: tag problem
Reply With Quote #3

YamiKaitou so fast...

Last edited by worldspawn; 12-23-2009 at 15:53.
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 12-23-2009 , 16:15   Re: tag problem
Reply With Quote #4

:sad face:
you have something against hamsandwiches?
:p
__________________
minimiller is offline
Send a message via MSN to minimiller
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 12-23-2009 , 16:33   Re: tag problem
Reply With Quote #5

omg damn my bad

@ minimiller : what do you mean?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-23-2009 , 16:36   Re: tag problem
Reply With Quote #6

You can do, if you want..

new bool:headshot = bool:read_data( 3 );
__________________
xPaw is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 12-23-2009 , 16:55   Re: tag problem
Reply With Quote #7

oh oki ty
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 12-23-2009 , 17:13   Re: tag problem
Reply With Quote #8

Quote:
Originally Posted by One View Post
@ minimiller : what do you mean?
i find ham easier to use than deathmsg
no real reason
xD
__________________
minimiller is offline
Send a message via MSN to minimiller
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 12-23-2009 , 17:17   Re: tag problem
Reply With Quote #9

ok. can u give an example code? realy said : i hate ham
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 12-23-2009 , 18:24   Re: tag problem
Reply With Quote #10

Quote:
Originally Posted by One View Post
ok. can u give an example code? realy said : i hate ham
maybe some Döner ?

but with hamsandwich u can do so many things and much easier. dont hate it just give it a try

german:
mit hamcheeseburger kannste ne menge anstellen und vorallem einfacher nutze es auch seit paar
wochen weils echt effektiver ist

Last edited by platzpatrone; 12-23-2009 at 18:26.
platzpatrone 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 04:11.


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