/enter .. error
#1

+_)_)^_$%)^%(17406) : warning 202: number of arguments does not match definition
^_$#P^_#^_%^(1740 : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

My code:

if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,286.7746,1820.3 505,17.6406,82.6615))
{
SetPlayerPos(playerid, 284.3833,1822.5433,17.6406,93.4599);
}
return 1;
}
Reply
#2

pawn Код:
if (strcmp("/enter", cmdtext, true, 10) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid,286.7746,1820.3 505,17.6406,82.6615))
    {
        SetPlayerPos(playerid, 284.3833,1822.5433,17.6406);
    }
    return 1;
}
___
Reply
#3

Quote:
Originally Posted by BigAl
Посмотреть сообщение
pawn Код:
if (strcmp("/enter", cmdtext, true, 10) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid,286.7746,1820.3 505,17.6406,82.6615))
    {
        SetPlayerPos(playerid, 284.3833,1822.5433,17.6406);
    }
    return 1;
}
___
even more errors with that,,.,
Reply
#4

pawn Код:
f (strcmp("/enter", cmdtext, true, 10) == 0)
IsPlayerInRangeOfPoint(playerid,286.7746,1820.3 505,17.6406,82.6615))
{
SetPlayerPos(playerid, 284.3833,1822.5433,17.6406,93.4599);
}
return 1;
}
The "if" before the IsPlayerInRangeOfPoint might be giving you the errors.
Reply
#5

pawn Код:
if(strcmp(cmdtext,"/enter",true)==0)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 286.7746,1820.3505,17.6406))
    {
        SetPlayerPos(playerid, 284.3833,1822.5433,17.6406);
    }
    return 1;
}
that should work
Reply
#6

pawn Код:
if(strcmp(cmdtext, "/enter", true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,286.7746,1820.3505,17.6406,82.6615))
        {
            SetPlayerPos(playerid, 284.3833,1822.5433,17.6406);
        }
        return 1;
    }
Reply
#7

Thanks guys, helped out. BIGAL, yours still didint work, but ehh,,
Reply
#8

Quote:
Originally Posted by uprp
Посмотреть сообщение
Thanks guys, helped out. BIGAL, yours still didint work, but ehh,,
did main work?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)