C:\Users\Usuario\Documents\BPP\gamemodes\bpp.pwn(42160) : error 001: expected token: ")", but found "-identifier-"
C:\Users\Usuario\Documents\BPP\gamemodes\bpp.pwn(42167) : error 001: expected token: ")", but found "-identifier-"
if(strcmp(cmdtext, "/ahqmib", true) == 0)
{
if ((IsACop(playerid))
MoveObject(playerid,980,-1736.8000488281, 29.5, 13.300000190735,0,0, 3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Abrindo Portгo da HQ MIB...");
return 1;
}
if(strcmp(cmdtext, "/fhqmib", true) == 0)
{
if ((IsACop(playerid))
MoveObject(playerid,980,-1736.8000488281, 29.5, 5.3000001907349,0,0, 3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Fechando Portгo da HQ MIB...");
return 1;
}
if(strcmp(cmdtext, "/ahqmib", true) == 0)
{
if (IsACop(playerid))
MoveObject(playerid,980,-1736.8000488281, 29.5, 13.300000190735,0,0, 3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Abrindo Portгo da HQ MIB...");
return 1;
}
if(strcmp(cmdtext, "/fhqmib", true) == 0)
{
if (IsACop(playerid))
MoveObject(playerid,980,-1736.8000488281, 29.5, 5.3000001907349,0,0, 3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Fechando Portгo da HQ MIB...");
return 1;
}
if(strcmp(cmdtext, "/ahqmib", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(playerid,980,-1736.8000488281, 29.5, 13.300000190735,0,0, 3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Abrindo Portгo da HQ MIB...");
}
return 1;
}
if(strcmp(cmdtext, "/fhqmib", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(playerid,980,-1736.8000488281, 29.5, 5.3000001907349,0,0, 3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Fechando Portгo da HQ MIB...");
}
return 1;
}
if(strcmp(cmdtext, "/ahqmib", true) == 0)
{
if ((IsACop(playerid))
MoveObject(playerid,980,-1736.8000488281, 29.5, 13.300000190735,0,0, 3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Abrindo Portгo da HQ MIB...");
return 1;
}
if(strcmp(cmdtext, "/fhqmib", true) == 0)
{
if ((IsACop(playerid))
MoveObject(playerid,980,-1736.8000488281, 29.5, 5.3000001907349,0,0, 3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Fechando Portгo da HQ MIB...");
return 1;
}
if(strcmp(cmdtext, "/ahqmib", true) == 0)
{
{
if ((IsACop(playerid))
{
MoveObject(playerid,980,-1736.8000488281, 29.5, 13.300000190735,0,0, 3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Abrindo Portгo da HQ MIB...");
return 1;
}
}
if(strcmp(cmdtext, "/fhqmib", true) == 0)
{
if ((IsACop(playerid))
{
MoveObject(playerid,980,-1736.8000488281, 29.5, 5.3000001907349,0,0, 3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Fechando Portгo da HQ MIB...");
return 1;
}
}
}
Modo correto:
pawn Код:
|
if ((IsACop(playerid))
if(strcmp(cmdtext, "/ahqmib", true) == 0)
{
{
if ((IsACop(playerid))
{
MoveObject(playerid,980,-1736.8000488281, 29.5, 13.300000190735,3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Abrindo Portгo da HQ MIB...");
return 1;
}
}
if(strcmp(cmdtext, "/fhqmib", true) == 0)
{
if ((IsACop(playerid))
{
MoveObject(playerid,980,-1736.8000488281, 29.5, 5.3000001907349, 3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Fechando Portгo da HQ MIB...");
return 1;
}
}
}
new portao1;
// OnGameModeInt
pext = CreateObject(980,-1736.8000488281, 29.5, 5.3000001907349,0.0,0.0,0.0);
// Comandos
if(strcmp(cmdtext, "/ahqmib", true) == 0)
{
{
if ((IsACop(playerid))
{
MoveObject(portao1,-1736.8000488281, 29.5, 13.300000190735,3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Abrindo Portгo da HQ MIB...");
return 1;
}
}
if(strcmp(cmdtext, "/fhqmib", true) == 0)
{
if ((IsACop(playerid))
{
MoveObject(portao1,-1736.8000488281, 29.5, 5.30000019073491,3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Fechando Portгo da HQ MIB...");
return 1;
}
}
}
// Ou Assim
if(strcmp(cmdtext, "/ahqmib", true) == 0)
{
{
if (IsACop(playerid))
{
MoveObject(portao1,-1736.8000488281, 29.5, 13.300000190735,3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Abrindo Portгo da HQ MIB...");
return 1;
}
}
if(strcmp(cmdtext, "/fhqmib", true) == 0)
{
if (IsACop(playerid))
{
MoveObject(portao1,-1736.8000488281, 29.5, 5.30000019073491,3.0);
SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Fechando Portгo da HQ MIB...");
return 1;
}
}
}