Warning 202
#1

Hey guys,

I got another problem, I'm always getting these errors when I'm compiling my script:

Quote:

pd mavs + dach.pwn(77) : warning 202: number of arguments does not match definition
pd mavs + dach.pwn(7 : warning 202: number of arguments does not match definition

Here the whole cmd:

Код:
	if (strcmp("/pdrunter", cmdtext, true, 10) == 0)
	{
		if(IsPlayerInRangeOfPoint(playerid, 5, 1571.8101,-1675.6870,28.3955,279.0334)) //This is line 77
		SetPlayerPos(playerid, 242.2857,66.3882,1003.6406,105.1551); // This is line 78
		else SendClientMessage (playerid, 0xFF0000, "Du bist nicht am PD Dach!");
		return 1;
	}
Any ideas?

Thanks in advance!
Reply
#2

you dont need to use angle with those functions, so remove the last parameter, its all written in the error
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 5, 1571.8101,-1675.6870,28.3955)) //This is line 77
SetPlayerPos(playerid, 242.2857,66.3882,1003.6406); // This is line 78
Reply
#3

It means exactly what it says, they aren't errors, they are warnings. You are passing more arguments to those functions than the function is actually looking for. You should look up the function for more information.

SetPlayerPos for example is looking for 4 arguments, you have given it 5 arguments. The same is likely true for IsPlayerInRangeOfPoint.
Reply
#4

Thanks !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)