C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(14079) : error: 017: undefined symbol "relatorio" C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(14079) : error: 017: undefined symbol "sscanf" C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(14079) : warning: 219: local variable "string" shadows a variable at a preceding level C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(14079) : warning: 225: unreachable code C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(14079) : warning: 203: symbol is never used: "CMD""
CMD:relatorio(playerid, params[]) { new relato[128]; if(sscanf(params, "s", relato)) return SendClientMessage(playerid, COR_ADMIN, "Use /relatorio [texto]"); new string[128], Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, MAX_PLAYER_NAME); format(string, sizeof(string), "Relatorio - [id: %d] %s relatou: %s", playerid, Nome, relato); ABroadCast(-1, string, 1); SendClientMessage(playerid, -1, "[BZC] Relatorio enviado com sucesso!! Aguarde o atendimento !."); return 1; }
Olб eu criei o codigo pra um de /relatorio mais deu alguns erros e alguns warnings na horas de compilar:
Код:
C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(14079) : error: 017: undefined symbol "relatorio" C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(14079) : error: 017: undefined symbol "sscanf" C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(14079) : warning: 219: local variable "string" shadows a variable at a preceding level C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(14079) : warning: 225: unreachable code C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(14079) : warning: 203: symbol is never used: "CMD"" Код:
CMD:relatorio(playerid, params[]) { new relato[128]; if(sscanf(params, "s", relato)) return SendClientMessage(playerid, COR_ADMIN, "Use /relatorio [texto]"); new string[128], Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, MAX_PLAYER_NAME); format(string, sizeof(string), "Relatorio - [id: %d] %s relatou: %s", playerid, Nome, relato); ABroadCast(-1, string, 1); SendClientMessage(playerid, -1, "[BZC] Relatorio enviado com sucesso!! Aguarde o atendimento !."); return 1; } |
C:\Users\SouzaSantos\Desktop\GM 0.3d\pawno\include\servermoneyGM.inc(1407 : warning: 201: redefinition of constant/macro (symbol "OnGameModeInit")
C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(1407 : error: 029: invalid expression, assumed zero C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(1407 : error: 017: undefined symbol "cmd_relatorio" C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(1407 : error: 029: invalid expression, assumed zero C:\Users\SouzaSantos\Desktop\GM 0.3d\gamemodes\BML.pwn(1407 : error fatal: 107: too many error messages on one line |
CMD:relato(playerid, params[])
{
new relato[128],str[128], Nome[MAX_PLAYER_NAME];
if(sscanf(params, "s", relato)) return SendClientMessage(playerid, COR_ADMIN, "Use /relato [texto]");
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format(str, sizeof(str), "Relatorio - [id: %d] %s relatou: %s", playerid, Nome, relato);
ABroadCast(-1, str, 1);
SendClientMessage(playerid, -1, "[BZC] Relatorio enviado com sucesso!! Aguarde o atendimento !.");
return 1;
}