15.03.2018, 13:12
Bom galera estou tentando monta um comando para os cops mas esta dano uns erro chatos que nгo consigo resolve-lo alguйm me ajuda pfv
PHP код:
dcmd_enquadrar(playerid, params[])
{
if(Player[playerid][pPMRJ] < 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(!IsPlayerConnected(id))
return SendClientMessage(playerid, COR_ERRO, "{CD5C5C}ERRO: {D2B48C}» Este jogador nгo estб conectado.");
SetPlayerSpecialAction(id, SPECIAL_ACTION_HANDSUP);
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!");
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[])
{
if(Player[playerid][pPMRJ] < 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(!IsPlayerConnected(id))
return SendClientMessage(playerid, COR_ERRO, "{CD5C5C}ERRO: {D2B48C}» Este jogador nгo estб conectado.");
ClearAnimations(playerid);
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!");
new string[128];
format(string, 128, "O Policial Militar %s te liberou.", getPName(id));
SendClientMessage(playerid, -1, String);
format(string, 128, "O Policial Militar %s te liberou.", getPName(playerid));
SendClientMessage(id, -1, String);
return 1;
}
Код:
C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23177) : error 017: undefined symbol "id" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23179) : warning 217: loose indentation C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23179) : error 017: undefined symbol "id" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23181) : warning 217: loose indentation C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23181) : error 017: undefined symbol "id" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23184) : error 017: undefined symbol "id" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23188) : error 017: undefined symbol "id" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23189) : error 017: undefined symbol "String" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23191) : error 017: undefined symbol "id" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23203) : error 017: undefined symbol "id" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23205) : warning 217: loose indentation C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23207) : warning 217: loose indentation C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23207) : error 017: undefined symbol "id" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23210) : error 017: undefined symbol "id" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23214) : error 017: undefined symbol "id" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23215) : error 017: undefined symbol "String" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(23217) : error 017: undefined symbol "id" C:\Users\Henrique Guedes\Desktop\GameMode\gamemodes\gamemodehenrique.pwn(25618) : warning 203: symbol is never used: "PosCX" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 13 Errors.