![]() |
[Ajuda] Warnings e Erros na GM - Versão de Impressão +- Portal SAMP (https://portalsamp.com) +-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5) +--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6) +--- Tópico: [Ajuda] Warnings e Erros na GM (/showthread.php?tid=2461) |
Warnings e Erros na GM - BrunoS - 08/06/2022 new format(String, sizeof(String), "Contas/%s.ini", PlayerName(playerid)); if(DOF2_FileExists(String)) { format(String, sizeof(String), "\n{FFFFFF}Conta: %s\n\nStatus: {00FF00}Registrado\n\n{FFFFFF}Digite sua senha para logar", PlayerName(playerid)); ShowPlayerDialog(playerid, DIALOGSENHA, DIALOG_STYLE_PASSWORD, "Login", String, "Login", "Cancelar"); } else { format(String, sizeof(String), "\n{FFFFFF}Conta: %s\n\nStatus: {FF0000}Não Registrado\n\n{FFFFFF}Digite uma senha para se registrar", PlayerName(playerid)); ShowPlayerDialog(playerid, DIALOGREGISTRO, DIALOG_STYLE_PASSWORD, "Registro", String, "Registro", "Cancelar"); } Esse código está dando erro quando compilo, não sei oque tem de errado, alguem pode me ajudar? RE: Warnings e Erros na GM - White_Blue - 08/06/2022 Quais são os erros que tão dando? RE: Warnings e Erros na GM - xbruno1000x - 09/06/2022 new format(String, sizeof(String), "Contas/%s.ini", PlayerName(playerid)); Um format não pode ser uma new. RE: Warnings e Erros na GM - BrunoS - 10/06/2022 C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(38) : error 017: undefined symbol "PlayerName" C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(39) : warning 217: loose indentation C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(41) : error 017: undefined symbol "PlayerName" C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(46) : error 017: undefined symbol "PlayerName" C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(82) : warning 219: local variable "PlayerName" shadows a variable at a preceding level C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(277) : error 017: undefined symbol "PlayerName" C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(281) : error 017: undefined symbol "PlayerName" C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(285) : error 017: undefined symbol "PlayerName" C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(291) : error 017: undefined symbol "PlayerName" C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(305) : error 017: undefined symbol "PlayerName" C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(316) : error 017: undefined symbol "PlayerName" C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(327) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase RE: Warnings e Erros na GM - xbruno1000x - 10/06/2022 (10/06/2022 17:37)BrunoS Escreveu: C:\Users\USUARIO\Desktop\samp\gamemodes\GM.pwn(38) : error 017: undefined symbol "PlayerName" PlayerName não é uma função nativa, você precisa pegar a stock PlayerName no script que tirou esse código. |