AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   tag mismatch warning in code (https://forums.alliedmods.net/showthread.php?t=153149)

Nyuszy 03-19-2011 12:39

tag mismatch warning in code
 
i get 3x tag mismatch in my code on line 41:
PHP Code:

new float:velocity[3]
pev(idpev_velocityvelocity)
// line 41:
if((velocity[0] == 0.0) && (velocity[1] == 0.0) && (velocity[2] == 0.0))
{
     
// some code


what is wrong there?

tuty 03-19-2011 12:41

Re: tag mismatch warning in code
 
PHP Code:

if( velocity[0] == 0.0 && velocity[1] == 0.0 && velocity[2] == 0.0


meTaLiCroSS 03-19-2011 12:54

Re: tag mismatch warning in code
 
PHP Code:

new float:velocity[3

->

PHP Code:

new Float:velocity[3


ConnorMcLeod 03-19-2011 13:11

Re: tag mismatch warning in code
 
PHP Code:

new Float:velocity[3]
pev(idpev_velocityvelocity)
if(!
velocity[0] && !velocity[1] && !velocity[2])
{
     
// some code



tuty 03-19-2011 13:48

Re: tag mismatch warning in code
 
lol i didn't saw that typo xD

fysiks 03-19-2011 14:02

Re: tag mismatch warning in code
 
Quote:

Originally Posted by tuty (Post 1435945)
lol i didn't saw that typo xD

And you didn't change anything in your first post. It is the exact same code.

ConnorMcLeod 03-19-2011 14:06

Re: tag mismatch warning in code
 
And your avatar hurts my eyes, would you bother change it ?

meTaLiCroSS 03-19-2011 14:34

Re: tag mismatch warning in code
 
Quote:

Originally Posted by ConnorMcLeod (Post 1435928)
metalicross is right.

PHP Code:

new Float:velocity[3]
pev(idpev_velocityvelocity)
if(!
velocity[0] && !velocity[1] && !velocity[2])
{
     
// some code



FUCK YEAH CONNOR SAID THAT I'M RIGHT LOLOLOLOLOL now I'll die happy.

tuty 03-19-2011 14:40

Re: tag mismatch warning in code
 
Quote:

Originally Posted by ConnorMcLeod (Post 1435955)
And your avatar hurts my eyes, would you bother change it ?

why?


other guy: why the hell should i change my post mistake was already corrected.


All times are GMT -4. The time now is 14:31.

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