Small with a job I made
#1

So I made a Pizza Boy job, everything compiles fine, except I get this warning. Was hoping one of you would be able to spot the problem here.

Код:
C:\Users\Jay\Desktop\Envision\gamemodes\Envision.pwn(4082) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Here's the line where it is.
Код:
	if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448) {//This is for the pizza boy job that's in progress
	    new rand = random(10);
	    SetPlayerCheckpoint(playerid,PizzaDelivery[rand][0],PizzaDelivery[rand][1],PizzaDelivery[rand][2]);//This is the line with the warning
		SendClientMessage(playerid, COLOR_ORANGE, "(( Deliver the pizza to the checkpoint. ))");
	}
And this is the place I'm refering the SetPlayerCheckpoint to
Код:
new Float:PizzaDelivery[10][4] = {
	{2101.41,-1812.57,13.55},
	{2087.21,-1166.44,25.42},
	{2000.29,-1119.21,26.78},
	{1906.14,-1117.91,25.66},
	{1985.40,-1718.06,15.96},
	{764.66,-1696.76,4.83},
	{739.11,-1415.46,13.51},
	{1529.78,-800.08,72.99},
	{2443.11,-1339.82,24.00},
	{2744.44,-1221.86,64.33}
};
Reply
#2

SetPlayerCheckpoint has a last parameter which defines the size of the checkpoint.

pawn Код:
SetPlayerCheckpoint(playerid, float:x, float:y, float:z, float:size);
Reply
#3

Quote:
Originally Posted by Bible
Посмотреть сообщение
SetPlayerCheckpoint has a last parameter which defines the size of the checkpoint.

pawn Код:
SetPlayerCheckpoint(playerid, float:x, float:y, float:z, float:size);
Riiiiiight, I can't believe I missed that small fact. Thanks =3
Reply
#4

Glad I helped. Good luck.
Reply
#5

Which line is 4082, if it's SetPlayerCheckPoint one then follow as the guy above said.
Reply
#6

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
Which line is 4082, if it's SetPlayerCheckPoint one then follow as the guy above said.
pawn Код:
SetPlayerCheckpoint(playerid,PizzaDelivery[rand][0],PizzaDelivery[rand][1],PizzaDelivery[rand][2]);//This is the line with the warning
It was that line. He mentioned it in his script.
Reply
#7

My bad, sorry.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)