Author Topic: error (type mismatch)  (Read 2193 times)

0 Members and 1 Guest are viewing this topic.

Offline scripter_pawn

  • Street Thug
  • *
  • Posts: 30
    • View Profile
error (type mismatch)
« on: December 23, 2012, 04:40:48 pm »
Code: [Select]
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;
 
}

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: error (type mismatch)
« Reply #1 on: December 23, 2012, 06:10:41 pm »
Damn and this guy called himself "scripter pawn"



-Funniest quotes-

Quote from: asad3man
i cant able to understand