(54) : warning 213: tag mismatch
#1

(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);
Reply
#2

*bump* really needed.
Reply
#3

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;
}
Reply
#4

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.
Reply
#5

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?
Reply
#6

a code.
Reply
#7

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)