Warning 217 and Error 001
#1

Hello! My beginner traveling in scripts continues, and this time I have problem:


warning 217: loose indentation
error 001: expected token: ";", but found "-identifier-"
warning 217: loose indentation
warning 217: loose indentation




Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/enter", cmdtext, true, 10) == 0)
	{
	if (IsPlayerInRangeOfPoint(playerid, 3.0, 1352.1962,-1756.9938,13.5078))
	    SetPlayerPos(playerid, -25.7000,-90.1999,1004.2999);
	   (IsPlayerInRangeOfPoint(playerid, 3.0, 1778.0828,-1664.6692,14.4355))
	    SetPlayerPos(playerid, 493.4503,-21.9830,1000.6797);
		// Do something here
Help me? :P
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1352.1962,-1756.9938,13.5078))
        SetPlayerPos(playerid, -25.7000,-90.1999,1004.2999);
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1778.0828,-1664.6692,14.4355))
        SetPlayerPos(playerid, 493.4503,-21.9830,1000.6797);
        // Do something here
Very simple errors. The errors/warnings are self explanatory.
Reply
#3

Quote:
Originally Posted by Kindred
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1352.1962,-1756.9938,13.5078))
        SetPlayerPos(playerid, -25.7000,-90.1999,1004.2999);
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1778.0828,-1664.6692,14.4355))
        SetPlayerPos(playerid, 493.4503,-21.9830,1000.6797);
        // Do something here
Very simple errors. The errors/warnings are self explanatory.
Damn, how stupid I am +rep for you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)