AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   tag mismatch error [code] (https://forums.alliedmods.net/showthread.php?t=172545)

amxinclude 11-22-2011 10:59

tag mismatch error [code]
 
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


Arkshine 11-22-2011 11:06

Re: tag mismatch error [code]
 
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

amxinclude 11-22-2011 11:13

Re: tag mismatch error [code]
 
same again :(
PHP Code:

set_hudmessage(2542540Float:0.57Float:0.840Float:0.01Float:0.99Float:0.25Float:1.000


Arkshine 11-22-2011 11:19

Re: tag mismatch error [code]
 
Can you tell me where I've said you to put Float: ?

amxinclude 11-22-2011 11:21

Re: tag mismatch error [code]
 
Sorry, bad english

amxinclude 11-24-2011 11:02

Re: tag mismatch error [code]
 
could some1 give code ?

padilha007 11-24-2011 11:20

Re: tag mismatch error [code]
 
See this thread with this site and smile:

PHP Code:

http://translate.google.com/

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


Snaker beatter 11-24-2011 11:51

Re: tag mismatch error [code]
 
Maybe this is the problem:

0.00 in hes code

Korxu 11-24-2011 12:11

Re: tag mismatch error [code]
 
Quote:

Originally Posted by Arkshine (Post 1600780)
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 (Post 1600783)
same again :(
PHP Code:

set_hudmessage(2542540Float:0.57Float:0.840Float:0.01Float:0.99Float:0.25Float:1.000


:arrow::arrow:

PHP Code:

set_hudmessage 25425400.570.8400.010.990.251.0



All times are GMT -4. The time now is 08:27.

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