Range error
#1

Code:
public OnGameModeInit()
{
    if(IsPlayerInRangeOfPoint(7.0, 3971.3533,-2292.6138,12.2639))
    {
        SendClientMessage(0xFFFFFFFF,"{FF8000}Ferry will move to fast. So please don't be slow!");
    }

error:
Code:
E:\WOT\gamemodes\555.pwn(18618) : warning 213: tag mismatch
E:\WOT\gamemodes\555.pwn(18618) : warning 202: number of arguments does not match definition
E:\WOT\gamemodes\555.pwn(18620) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

This is the fixed code but this should not be under Gamemode Init
Code:
if(IsPlayerInRangeOfPoint(playerid,7.0, 3971.3533,-2292.6138,12.2639))
    {
        SendClientMessage(0xFFFFFFFF,"{FF8000}Ferry will move to fast. So please don't be slow!");
    }
Reply
#3

Then how to make something like if we are near at this 3971.3533,-2292.6138,12.2639 cord. We will get a message?
Reply
#4

You can use OnPlayerUpdate....

But too can use this: CreatePickup and Areas.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)