Posts: 34
Threads: 7
Joined: Jul 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
Posts: 1,219
Threads: 51
Joined: Jul 2012
Number Of arguments not match definitions
Just count
Posts: 34
Threads: 7
Joined: Jul 2016
Quote:
Originally Posted by [Bios]Marcel
Number Of arguments not match definitions
Just count
|
What?
Posts: 133
Threads: 28
Joined: Aug 2015
Reputation:
0
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 ??
Posts: 133
Threads: 28
Joined: Aug 2015
Reputation:
0
you can also use this !
if (IsPlayerInRangeOfPoint(playerid, range, X, Y, Z))
Posts: 1,206
Threads: 39
Joined: Feb 2014
Reputation:
0
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.