11.04.2015, 00:15
Erros Ao Copilar
CMD INTEIRO
Quote:
C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5891) : warning 219: local variable "sendername" shadows a variable at a preceding level C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5896) : error 035: argument type mismatch (argument 1) C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5896) : error 035: argument type mismatch (argument 1) C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : error 017: undefined symbol "arquivo" C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : error 017: undefined symbol "arquivo" C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : error 029: invalid expression, assumed zero C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. |
Quote:
CMD:darfuncao(playerid, params[]) { new admin, funcao[56]; new string[128]; new sendername[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GRAD2, "Comando restrito apenas pra administradores."); if(sscanf(params, "us[56]", admin, funcao)) return SendClientMessage(playerid, COLOR_GRAD1, "USE: /criar_funcao [{E01B4C}id/nome{B4B5B7}] [{249E33}funзгo{B4B5B7}]"); format(string, sizeof(string), "O Admin Setou Sua %s Funзao Para [%s]", sendername, funcao); SendClientMessage(admin, LIGHTBLUE, string); format(pAdmin, sizeof(string), "Vocк promoveu %s а funзгo %s de administraзгo.", sendername, funcao); SendClientMessage(playerid, LIGHTBLUE, string); format(arquivo, sizeof(arquivo), "Contas/%s.ini", sendername)); DOF2_SetString(arquivo, "Funcao", funcao); DOF2_SaveFile(); format(PlayerInfo[admin][Funcao], 60, "%s", DOF2_GetString(arquivo, "Funcao")); return 1; } |