errors?
#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/enter", cmdtext, true, 10) == 0)
	{
        if(IsPlayerInRangeOfPoint(playerid, 7.0, 2125.1001, -1776.7, 12.9))
        (
			SetPlayerPos(playerid, 2114.2, -1755.6, 892.90002);
			return 1;
        )
	}
	return 0;
}
soz, havent been scripting in a while.
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, 2125.1001, -1776.7, 12.9))
        (
            SetPlayerPos(playerid, 2114.2, -1755.6, 892.90002);
        )
        return 1;
    }
    return 0;
}
The return 1 was in the wrong place
Reply
#3

Quote:
Originally Posted by Banana_Ghost
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, 2125.1001, -1776.7, 12.9))
        (
            SetPlayerPos(playerid, 2114.2, -1755.6, 892.90002);
        )
        return 1;
    }
    return 0;
}
The return 1 was in the wrong place
That would not fix the problem.


CrazyManiac, you're using ( ) instead of { } under IsPlayerInRangeOfPoint
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)