Raised This Month: $ Target: $400
 0% 

tag mismatch error [code]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
amxinclude
Member
Join Date: Oct 2011
Old 11-22-2011 , 10:59   tag mismatch error [code]
Reply With Quote #1

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damage)
{
    
    new 
atk saldiri[attacker] - defans[victim]
    if ( 
is_valid_playerattacker ) )
    {
    
SetHamParamFloat(4,damage == atk )
    }
}
and 
2nd
set_hudmessage
(25525500.570.8406.012.0
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 367
Warning
Tag mismatch on line 392
Header size
:           1512 bytes
Code size
:            12352 bytes
Data size
:             5556 bytes
Stack
/heap size:      16384 bytesestimated maxusage=782 cells (3128 bytes)
Total requirements:   35804 bytes

2 Warnings
.
Done
amxinclude is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-22-2011 , 11:06   Re: tag mismatch error [code]
Reply With Quote #2

damage == atk doesn't make sense, it will result a boolean when you are supposed to put a float value, since you alter the damage param.

Time in float. 0 -> 0.0
__________________

Last edited by Arkshine; 11-22-2011 at 11:06.
Arkshine is offline
amxinclude
Member
Join Date: Oct 2011
Old 11-22-2011 , 11:13   Re: tag mismatch error [code]
Reply With Quote #3

same again
PHP Code:
set_hudmessage(2542540Float:0.57Float:0.840Float:0.01Float:0.99Float:0.25Float:1.000
amxinclude is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-22-2011 , 11:19   Re: tag mismatch error [code]
Reply With Quote #4

Can you tell me where I've said you to put Float: ?
__________________
Arkshine is offline
amxinclude
Member
Join Date: Oct 2011
Old 11-22-2011 , 11:21   Re: tag mismatch error [code]
Reply With Quote #5

Sorry, bad english
amxinclude is offline
amxinclude
Member
Join Date: Oct 2011
Old 11-24-2011 , 11:02   Re: tag mismatch error [code]
Reply With Quote #6

could some1 give code ?

Last edited by amxinclude; 11-24-2011 at 11:02.
amxinclude is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 11-24-2011 , 11:20   Re: tag mismatch error [code]
Reply With Quote #7

See this thread with this site and smile:

PHP Code:
http://translate.google.com/

http://forums.alliedmods.net/showthread.php?t=91207 
__________________

padilha007 is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-24-2011 , 11:51   Re: tag mismatch error [code]
Reply With Quote #8

Maybe this is the problem:

0.00 in hes code
__________________
Snaker beatter is offline
Korxu
Senior Member
Join Date: Sep 2010
Old 11-24-2011 , 12:11   Re: tag mismatch error [code]
Reply With Quote #9

Quote:
Originally Posted by Arkshine View Post
damage == atk doesn't make sense, it will result a boolean when you are supposed to put a float value, since you alter the damage param.

Time in float. 0 -> 0.0
Quote:
Originally Posted by amxinclude View Post
same again
PHP Code:
set_hudmessage(2542540Float:0.57Float:0.840Float:0.01Float:0.99Float:0.25Float:1.000


PHP Code:
set_hudmessage 25425400.570.8400.010.990.251.0
Korxu 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 08:27.


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