09.03.2012, 19:59
Olб eu criei o codigo pra um de /relatorio mais deu alguns erros e alguns warnings na horas de compilar:
E as linhas do erro sгo:
Код:
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; }