SA-MP Forums Archive
(54) : warning 213: tag mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: (54) : warning 213: tag mismatch (/showthread.php?tid=75350)



(54) : warning 213: tag mismatch - SuperS0nic - 01.05.2009

(54) : warning 213: tag mismatch
Код:
 distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));
Im making a gamemode and im using some code snippets.
And how do i define "state" ?
C:\DOCUME~1\Eliten\SKRIVB~1\SA-MP0~1.2XS\pawno\Beta.pwn(162) : error 017: undefined symbol "PlayerToPoint"
C:\DOCUME~1\Eliten\SKRIVB~1\SA-MP0~1.2XS\pawno\Beta.pwn(180) : error 017: undefined symbol "State"
C:\DOCUME~1\Eliten\SKRIVB~1\SA-MP0~1.2XS\pawno\Beta.pwn(181) : error 017: undefined symbol "State"
C:\DOCUME~1\Eliten\SKRIVB~1\SA-MP0~1.2XS\pawno\Beta.pwn(219) : error 017: undefined symbol "State"
C:\DOCUME~1\Eliten\SKRIVB~1\SA-MP0~1.2XS\pawno\Beta.pwn(220) : error 017: undefined symbol "State"
162:
Код:
{if(PlayerToPoint(3, playerid, 1172.6083,-1323.5745,15.4031)) // 24/7 enterance
180:
Код:
{State=GetPlayerState(playerid);



Re: (54) : warning 213: tag mismatch - SuperS0nic - 01.05.2009

*bump* really needed.


Re: (54) : warning 213: tag mismatch - [HiC]TheKiller - 01.05.2009

Well.. 180 should be:

pawn Код:
new State = GetPlayerState(playerid);
And the PlayerToPoint function:

pawn Код:
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
  new Float:oldposx, Float:oldposy, Float:oldposz;
  new Float:tempposx, Float:tempposy, Float:tempposz;
  GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  tempposx = (oldposx -x);
  tempposy = (oldposy -y);
  tempposz = (oldposz -z);
  if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  {
    return 1;
  }
  return 0;
}



Re: (54) : warning 213: tag mismatch - SuperS0nic - 01.05.2009

Thanks i found the new State = GetPlayerState(playerid); , but i always thought it was something to put in the top or somewere else, thanks for the help though.


Re: (54) : warning 213: tag mismatch - [HiC]TheKiller - 01.05.2009

pawn Код:
distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));
WTF is that?


Re: (54) : warning 213: tag mismatch - SuperS0nic - 01.05.2009

a code.


Re: (54) : warning 213: tag mismatch - [HiC]TheKiller - 01.05.2009

Quote:
Originally Posted by SuperS0nic
a code.
Doing what?


Re: (54) : warning 213: tag mismatch - MenaceX^ - 01.05.2009

Quote:
Originally Posted by [HiC
TheKiller ]
Quote:
Originally Posted by SuperS0nic
a code.
Doing what?
Read it.