stock IsPlayerInArea(playerid,Float:x1,Float:x2,Float:y1,Float:y2)
{
new sgf;
new Float:xmax , Float:xmin , Float:ymax , Flaot:ymin;
if (x1 > x2) { xmax = x1; xmin = x2; }
if (x1 < x2) { xmax = x2; xmin = x1; }
if (y1 > y2) { ymax = y1; ymin = y2; } // type mismatch here
if (y1 < y2) { ymax = y2; ymin = y1; } // here allsaw
new Float:x , Float:y , Float:z;
GetPlayerPos(playerid,x,y,z);
if (xmin < x < xmax && ymin < y < ymax) sgf = 1; // and here
else sgf = 0;
return sgf;
}