PDA

View Full Version : Erro of map !


DuongNghia
23/10/2013, 05:32 PM
C:\Documents and Settings\Admin\Desktop\Untitled.pwn(288) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 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 ?
?

reckst4r
23/10/2013, 05:36 PM
It's just a warning.


//-----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;
}

DuongNghia
23/10/2013, 05:45 PM
It's just a warning.


//-----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 ?

flrp
23/10/2013, 09:16 PM
normally that error is caused when the { }are not positioned correctly.

For example

if(<something>)
{


This could cause a loose identation warning in this line
the { should be under "if" to avoid this warning.
like this:


if(<something>)
{

PT
23/10/2013, 09:40 PM
next time, this site (http://tabulador.medianewsonline.com/)can help you solve this problem...