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;
}
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.
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;
}
|
try this....
pawn Код:
|
?
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;
}