//Linea Del Error:
if(IsPlayerInArea(playerid, ZonaAA)) return GameTextForPlayer(playerid,"~W~Armas ~r~Bloqueadas ~w~En Zonas Stunt!",3000,5);
//Error Segun Pawno:
error 017: undefined symbol "IsPlayerInArea"
stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
return 0;
}
undefined symbol "IsPlayerInRectangle"
stock IsPlayerInRectangle(playerid, Float:x1, Float:y1, Float:x2, Float:y2)
{
if(IsPlayerConnected(playerid))
{
new Float:xs,Float:ys,Float:zs;
GetPlayerPos(playerid,xs,ys,zs);
return IsPointInRectangle(xs,ys,x1,y1,x2,y2);
}
return 0;
}
stock IsPointInRectangle(Float:xs, Float:ys, Float:x1, Float:y1, Float:x2, Float:y2) //By Alex "******" Cole (edited by Gabriel "Larcius" Cordes)
{
if(IsBetweenFloats(xs,x1,x2) && IsBetweenFloats(ys,y1,y2))
{
return 1;
}
return 0;
}
stock IsBetweenFloats(Float:f,Float:f1,Float:f2) //By Gabriel "Larcius" Cordes
{
switch(floatcmp(f1, f2))
{
case 0: if(f==f1){return 1;}
case 1: if(f<=f1 && f>=f2){return 1;}
case -1: if(f>=f1 && f<=f2){return 1;}
}
return 0;
}
D:\Dark Empire - FREEROAM\gamemodes\DE.pwn(3070) : warning 202: number of arguments does not match definition
D:\Dark Empire - FREEROAM\gamemodes\DE.pwn(3070) : warning 202: number of arguments does not match definition
D:\Dark Empire - FREEROAM\gamemodes\DE.pwn(3070) : warning 202: number of arguments does not match definition
D:\Dark Empire - FREEROAM\gamemodes\DE.pwn(21673) : warning 219: local variable "x1" shadows a variable at a preceding level
D:\Dark Empire - FREEROAM\gamemodes\DE.pwn(21673) : warning 219: local variable "y1" shadows a variable at a preceding level
D:\Dark Empire - FREEROAM\gamemodes\DE.pwn(21673) : warning 219: local variable "x2" shadows a variable at a preceding level
D:\Dark Empire - FREEROAM\gamemodes\DE.pwn(21673) : warning 219: local variable "y2" shadows a variable at a preceding level
D:\Dark Empire - FREEROAM\gamemodes\DE.pwn(21685) : warning 219: local variable "x1" shadows a variable at a preceding level
D:\Dark Empire - FREEROAM\gamemodes\DE.pwn(21685) : warning 219: local variable "y1" shadows a variable at a preceding level
D:\Dark Empire - FREEROAM\gamemodes\DE.pwn(21685) : warning 219: local variable "x2" shadows a variable at a preceding level
D:\Dark Empire - FREEROAM\gamemodes\DE.pwn(21685) : warning 219: local variable "y2" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 8560 bytes
Code size: 1494776 bytes
Data size: 16184364 bytes
Stack/heap size: 20000000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:37687700 bytes
11 Warnings.
stock IsPlayerInRectangle(playerid, Float:x1_, Float:y1_, Float:x2_, Float:y2_)
{
if(IsPlayerConnected(playerid))
{
new Float:xs,Float:ys,Float:zs;
GetPlayerPos(playerid,xs,ys,zs);
return IsPointInRectangle(xs,ys,x1_,y1_,x2_,y2_);
}
return 0;
}
їNo serнa mбs fбcil usar IsPlayerInRangeOfPoint?
|
IsPlayerInRangeOfPoint:
IsPlayerInRectangle: Si no me equivoco es algo asн creo :/ |