IsPlayerInRangeOfPoint
#1

Ive scripted a "IsPlayerInRangeOfPoint" script.

The problem is that when i tried doing this line:
pawn Код:
if(!IsPlayerInVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"You Are Not In A Vehicle!");
It came up with this error:
pawn Код:
(3825) : warning 202: number of arguments does not match definition
Thanks
Reply
#2

pawn Код:
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"You Are Not In A Vehicle!");
Reply
#3

So to fix it all i needed to add was "Any"?
Reply
#4

Ya, since IsPlayerInAnyVehicle is meant for "any" vehicle, it doesn't needs extra arguments. But IsPlayerInVehicle requires a certain car:
pawn Код:
new car;
car = CreateVehicle(model, x, y, z ...);
if(IsPlayerInVehicle(playerid) == car) return FUNCTION;
Reply
#5

Ok thankyou! it worked.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)