Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: scripter_pawn on December 23, 2012, 04:40:48 pm

Title: error (type mismatch)
Post by: scripter_pawn 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;
 
}
Title: Re: error (type mismatch)
Post by: NeskWriter on December 23, 2012, 06:10:41 pm
Damn and this guy called himself "scripter pawn"

(http://i.imgur.com/NK0tR.png)