16.03.2018, 20:46
Bom galera estou editando um comando que eu montei e deu 26 erros alguem ajuda
PHP код:
dcmd_enquadrar(playerid, params[])
{
new id;
if(Player[playerid][pAdmin] < 1 || Player[playerid][pBOPE] < 1) return SendClientMessage(playerid,COR_ERRO,"{CD5C5C}ERRO: {D2B48C}» Vocк nгo tem permissгo");
if(!strlen(params))
return SendClientMessage(playerid, AzulEscuro,"[USE]: /enquadrar [texto]");
if(EmTrabalho[playerid] == 0)
return SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo estб em trabalho!");
if(!IsPlayerConnected(id))
return SendClientMessage(playerid, COR_ERRO, "{CD5C5C}ERRO: {D2B48C}» Este jogador nгo estб conectado.");
if(Player[id][pLogged] == false)
return SendClientMessage(playerid, COR_ERRO, "{CD5C5C}ERRO: {D2B48C}» Esse jogador nгo estб logado!");
if(Player[id][pTempoPreso] >= 1)
return SendClientMessage(playerid, COR_ERRO, "{CD5C5C}ERRO: {D2B48C}» Este jogador estб preso!");
if(!IsPlayerConnected(id) || id == playerid)
return SendClientMessage(playerid,COR_ERRO,"{CD5C5C}ERRO: {D2B48C}» Vocк nгo pode enquadrar a sн mesmo!");
if(Player[id][Enquadrado] == true)
{
SendClientMessage(playerid, COR_ERRO, "{CD5C5C}ERRO: {D2B48C}» Esse player jб estб enquadrado!");
}
else
{
Player[id][Enquadrado] = true;
TogglePlayerControllable(id, 0);
ApplyAnimation(id, "ROB_BANK", "SHP_HandsUp_Scr", 4.0, 0, 1, 1, 1, 0);
new string[128];
format(string, 128, "Vocк enquadrou o %s.", getPName(id));
SendClientMessage(playerid, -1, string);
format(string, 128, "O Policial Militar %s te enquadrou.", getPName(playerid));
MensagemLocal(id, COR_ROXO, string, 60);
return 1;
}
dcmd_liberar(playerid, params[])
{
new id;
if(Player[playerid][pAdmin] < 1 || Player[playerid][pBOPE] < 1) return SendClientMessage(playerid,COR_ERRO,"{CD5C5C}ERRO: {D2B48C}» Vocк nгo tem permissгo");
if(!strlen(params))
return SendClientMessage(playerid, AzulEscuro,"[USE]: /liberar [texto]");
if(EmTrabalho[playerid] == 0)
return SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo estб em trabalho!");
if(!IsPlayerConnected(id))
return SendClientMessage(playerid, COR_ERRO, "{CD5C5C}ERRO: {D2B48C}» Este jogador nгo estб conectado.");
if(Player[id][pLogged] == false)
return SendClientMessage(playerid, COR_ERRO, "{CD5C5C}ERRO: {D2B48C}» Esse jogador nгo estб logado!");
if(Player[id][InHospital] == true)
return SendClientMessage(playerid, COR_ERRO, "{CD5C5C}ERRO: {D2B48C}» Esse jogador estб no hospital!");
if(Player[id][pTempoPreso] >= 1)
return SendClientMessage(playerid, COR_ERRO, "{CD5C5C}ERRO: {D2B48C}» Este jogador estб preso!");
if(!IsPlayerConnected(id) || id == playerid)
return SendClientMessage(playerid,COR_ERRO,"{CD5C5C}ERRO: {D2B48C}» Vocк nгo pode liberar a sн mesmo!");
if(Player[id][Enquadrado] == false)
{
SendClientMessage(playerid, COR_ERRO, "{CD5C5C}ERRO: {D2B48C}» Esse player nгo estб enquadrado!");
}
else
{
Player[id][Enquadrado] = false;
TogglePlayerControllable(id, 1);
ClearAnimations(playerid);
new string[128];
format(string, 128, "Vocк liberou o %s.", getPName(id));
SendClientMessage(playerid, -1, string);
format(string, 128, "O Policial Militar %s te liberou.", getPName(playerid));
SendClientMessage(id, -1, string);
return 1;
}
enum pInfo
{
bool:Enquadrado
}
public OnPlayerConnect(playerid)
Player[playerid][Enquadrado] = false;
public OnPlayerDisconnect(playerid, reason)
Player[playerid][Enquadrado] = false;
Код:
C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(1555) : error 017: undefined symbol "SalvarLog" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(1556) : error 017: undefined symbol "SetarArmas" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(1573) : error 017: undefined symbol "LoadConfig" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(6962) : error 017: undefined symbol "SalvarDadosOrgsCops" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(6963) : error 017: undefined symbol "GuardarArmas" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7138) : error 017: undefined symbol "GetPlayerFile" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7138) : error 033: array must be indexed (variable "file") C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7164) : error 017: undefined symbol "CreateMapIcons" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7355) : error 017: undefined symbol "VerificarRival" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7398) : error 017: undefined symbol "MensagemLocal" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7431) : error 017: undefined symbol "RemoveNeon" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7438) : error 017: undefined symbol "RemoveNeon" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7518) : error 017: undefined symbol "HidePlayerArrow" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7541) : error 017: undefined symbol "ResetPlayerTeam" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7877) : error 017: undefined symbol "GetDistanceBetweenPlayers" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7949) : error 017: undefined symbol "SalvarLog" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7968) : error 017: undefined symbol "SalvarLog" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(7995) : error 017: undefined symbol "ResetPlayerTeam" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(8039) : error 017: undefined symbol "SendMessageToCops" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(8041) : error 017: undefined symbol "SendMessageToCops" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(8052) : error 017: undefined symbol "SendMessageToCops" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(8054) : error 017: undefined symbol "SendMessageToCops" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(8070) : error 017: undefined symbol "SalvarDadosOrgsCops" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(8094) : error 017: undefined symbol "SendMessageToCops" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(8096) : error 017: undefined symbol "SendMessageToCops" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(8107) : error 017: undefined symbol "SendMessageToCops" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.