SA-MP Forums Archive
Why won't this work? - 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: Why won't this work? (/showthread.php?tid=100132)



Why won't this work? - Battleskull - 03.10.2009

top of code
Код:
new oldx[MAX_PLAYERS];
new oldy[MAX_PLAYERS];
part 1
Код:
GetPlayerPos(playerid,x,y,z);
oldx[playerid] = x;
oldy[playerid] = y;
part 2
Код:
GetPlayerPos(playerid,x,y,z);
if(oldx[playerid]<x) && (oldx[playerid]-x >= -3)
It always give me tag mismatch error.
I know the problem is with the float so what can i do?




Re: Why won't this work? - MadeMan - 03.10.2009

pawn Код:
new Float:oldx[MAX_PLAYERS];
new Float:oldy[MAX_PLAYERS];



Re: Why won't this work? - Battleskull - 03.10.2009

Quote:
Originally Posted by MadeMan
pawn Код:
new Float:oldx[MAX_PLAYERS];
new Float:oldy[MAX_PLAYERS];
I feel stupid now

Thanks for the help