Helping - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Helping (
/showthread.php?tid=619747)
Helping -
KochJaber - 21.10.2016
Warning On Line 69414:Number Of arguments not match definitions
PHP код:
if(IsPlayerInArea(playerid,LandInfo[i][landZone],Float:landMinX,Float:landMinY,Float:landMaxX,Float:landMaxY))//69414
Re: Helping -
BiosMarcel - 21.10.2016
Number Of arguments not match definitions
Just count
Re: Helping -
KochJaber - 21.10.2016
Quote:
Originally Posted by [Bios]Marcel
Number Of arguments not match definitions
Just count 
|
What?
Re: Helping -
DarkLight - 21.10.2016
IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, 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;
}
You have like this ??
Re: Helping -
DarkLight - 21.10.2016
you can also use this !
if (IsPlayerInRangeOfPoint(playerid, range, X, Y, Z))
Re: Helping -
AndySedeyn - 21.10.2016
The problem here is that you don't understand how functions work. I'm usually more than glad to post an extended explanation about different concepts of programming, but functions is such a big topic. You should read a book about them or at least a tutorial on the forum.