02.09.2011, 16:56
Boas pessoal,eu estou tendo problemas com este erro
o comando que estб a dar erro й:
^^Filterscript
PHP код:
C:\Documents and Settings\kikito.KIKITO-PC\Ambiente de trabalho\tb\tb.pwn(124) : error: 030: compound statement not closed at the end of file (started at line 84)
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/abrirportao", cmdtext, true, 10) == 0)
{
new name[24];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp("[TB]", name, true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
{
MoveObject(21, 2375.0532, -2646.1162, 12.6900, 2.0);
SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora aberto :D.");
}
else if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
{
MoveObject(12, 2424.7588, -2416.4624, 12.2100, 2.0);
SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora aberto :D.");
}
else if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
{
MoveObject(57, 2376.3201, -2165.0100, 29.0662, 2.0);
SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora aberto :D.");
}
return 1;
}
else if (strcmp("/fecharportao", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
{
MoveObject(21, 2375.20, -2657.95, 12.69, 2.0);
SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora fechado :D.");
}
else if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
{
MoveObject(12, 2416.79, -2424.33, 12.2, 2.0);
SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora fechado :D.");
}
else if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
{
MoveObject(57, 2376.32, -2165.01, 21.01, 2.0);
SendClientMessage(playerid, 0xFF8000FF, "O portгo estб agora fechado :D.");
}
return 1;
}