Why won't this work?
#1

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?

Reply
#2

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

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

Thanks for the help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)