Help , warning 202 / Point
#1

Hi guys


Код:
att = CreateVehicle(578, 2264.8755, -1252.7938, 23.1688, 0.0000, -1, -1, 100);

	if(strcmp("/Test", cmdtext, true, 10) == 0)
	{
180 =>	if(IsPlayerInRangeOfPoint(playerid, 7.0, att))
		{
            SendClientMessage(playerid, COLOR_YELLOW,"Test");
		}
		return 1;
	}
warning

Код:
filterscripts\Test.pwn(180) : warning 202: number of arguments does not match definition
filterscripts\Test.pwn(180) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#2

You can't use the x,y,z co-ordinates like that.

https://sampwiki.blast.hk/wiki/GetVehiclePos
Reply
#3

try this....

pawn Код:
att = CreateVehicle(578, 2264.8755, -1252.7938, 23.1688);

    if(strcmp("/Test", cmdtext, true, 10) == 0)
    {
180 =>  if(IsPlayerInRangeOfPoint(playerid, 7.0, att))
        {
            SendClientMessage(playerid, COLOR_YELLOW,"Test");
        }
        return 1;
    }
Reply
#4

Quote:
Originally Posted by DetoNater
Посмотреть сообщение
try this....

pawn Код:
att = CreateVehicle(578, 2264.8755, -1252.7938, 23.1688);

    if(strcmp("/Test", cmdtext, true, 10) == 0)
    {
180 =>  if(IsPlayerInRangeOfPoint(playerid, 7.0, att))
        {
            SendClientMessage(playerid, COLOR_YELLOW,"Test");
        }
        return 1;
    }
LOL !!! What You Chnage ?
Reply
#5

did it worked, btw i changed the x,y,z co-od..... removed"(0.0000, -1, -1, 100);" from CreateVehicle
Reply
#6

Try like this, I'm not sure will it work because I'm not home to try it out:
Код:
         CreateVehicle(578, 2264.8755, -1252.7938, 23.1688, 0.0000, -1, -1, 100);

	if(strcmp("/Test", cmdtext, true, 10) == 0)
	{
                new Float:x,Float:y,Float:z;
                GetVehiclePos(playerid, x,y,z);
                if(IsPlayerInRangeOfPoint(playerid, 7.0, x,y,z))
		{
            SendClientMessage(playerid, COLOR_YELLOW,"Test");
		}
		return 1;
	}
Reply
#7

Quote:
Originally Posted by emokidx
Посмотреть сообщение
You can't use the x,y,z co-ordinates like that.

https://sampwiki.blast.hk/wiki/GetVehiclePos
thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)