SA-MP Forums Archive
Erro of map ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Erro of map ! (/showthread.php?tid=471542)



Erro of map ! - DuongNghia - 23.10.2013

Код:
C:\Documents and Settings\Admin\Desktop\Untitled.pwn(288) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
This my code map http://pastebin.com/KrGyxfhG
Код:
//-----FIN-----------------------------------------------------------------
    return 1;
}


public OnPlayerConnect(playerid)
{
   SendClientMessage(playerid,0xF47A00FF,"Prison d'Alcatraz par: Mehdi-jumper, Bon jeu!");
   return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
        //---------------/gotoprison By Keny Tancredi (mehdi-jumper)------------------

  if (strcmp(cmdtext , "/gotoprison", true) == 0 || strcmp(cmdtext, "/gotop", true) == 0)
     {
          SetPlayerInterior(playerid,0);
          SetPlayerPos(playerid,636.9958,-3497.7510,15.5779);
          SendClientMessage(playerid, 0xF47A00FF,"Bienvenue а la prison d'Alcatraz.");
          return 1;
     }
  return 0;
}
And anybody make me a code to go that pos ?
?


Re: Erro of map ! - reckst4r - 23.10.2013

It's just a warning.

pawn Код:
//-----FIN-----------------------------------------------------------------
    return 1;
}


public OnPlayerConnect(playerid)
{
   SendClientMessage(playerid,0xF47A00FF,"Prison d'Alcatraz par: Mehdi-jumper, Bon jeu!");
   return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    //---------------/gotoprison By Keny Tancredi (mehdi-jumper)------------------

    if (strcmp(cmdtext , "/gotoprison", true) == 0 || strcmp(cmdtext, "/gotop", true) == 0)
    {
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,636.9958,-3497.7510,15.5779);
        SendClientMessage(playerid, 0xF47A00FF,"Bienvenue а la prison d'Alcatraz.");
        return 1;
    }
    return 0;
}



Re: Erro of map ! - DuongNghia - 23.10.2013

Quote:
Originally Posted by reckst4r
Посмотреть сообщение
It's just a warning.

pawn Код:
//-----FIN-----------------------------------------------------------------
    return 1;
}


public OnPlayerConnect(playerid)
{
   SendClientMessage(playerid,0xF47A00FF,"Prison d'Alcatraz par: Mehdi-jumper, Bon jeu!");
   return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    //---------------/gotoprison By Keny Tancredi (mehdi-jumper)------------------

    if (strcmp(cmdtext , "/gotoprison", true) == 0 || strcmp(cmdtext, "/gotop", true) == 0)
    {
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,636.9958,-3497.7510,15.5779);
        SendClientMessage(playerid, 0xF47A00FF,"Bienvenue а la prison d'Alcatraz.");
        return 1;
    }
    return 0;
}
Can you make me a one code to tele that ?


Re: Erro of map ! - flrp - 23.10.2013

normally that error is caused when the { }are not positioned correctly.

For example
PHP код:
    if(<something>)
          { 
This could cause a loose identation warning in this line
the { should be under "if" to avoid this warning.
like this:

PHP код:
    if(<something>)
    { 



Re: Erro of map ! - PT - 23.10.2013

next time, this site can help you solve this problem...