13.05.2015, 21:32
(
Последний раз редактировалось ModaLOKO; 13.05.2015 в 22:26.
)
opa , firme ?
eu peguei esse comando de mudar nick da HumildadeForever e estou com dificuldades de adaptalo em minha gm :/
й estб dando muitos erro em relaзгo ao "ReturnFileUser" й eu nгo sei qual a funзгo dele...
o que estб errado ?
@edit
Resolvi
no lugar de "ReturnFileUser" coloquei "Contas" й deu certo <3
eu peguei esse comando de mudar nick da HumildadeForever e estou com dificuldades de adaptalo em minha gm :/
pawn Код:
if(dialogid == DIALOG_MUDARNICK)
{
if(!response) return SendClientMessage(playerid,0xC5B43AAA,"Vocк cancelou a troca do nick.");
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_MUDARNICK, DIALOG_STYLE_INPUT,"[Nome do server] - Mudanзa de nick","Digite seu novo nick","Trocar","Cancelar");
new arq[70];
format(arq,sizeof(arq),"Contas/%s.ini", inputtext);
if(fexist(arq)) return ShowPlayerDialog(playerid,DIALOG_MUDARNICK,DIALOG_STYLE_INPUT, "[Nome do server] - Mudanзa de nick","ERRO: Esse nick jб existe","Trocar","Cancelar");
new string[60];
if(fexist(ReturnFileUser(playerid)))
{
new string2[50];
format(string2,sizeof(string2),"Contas/%s.ini", inputtext);
DOF2_RenameFile(ReturnFileUser(playerid),string2);
DOF2_SaveFile();
}
format(string, sizeof(string), "Parabйns! Seu novo nome й {FFFF34}%s", inputtext);
SendClientMessage(playerid, -1, string);
SetPlayerName(playerid, inputtext);
return 1;
}
if(dialogid == DIALOG_MUDARSENHA)
{
if(!response) return SendClientMessage(playerid,0xC5B43AAA,"Vocк cancelou a troca da senha.");
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_MUDARSENHA,DIALOG_STYLE_INPUT,"[Nome do server] - Mudanзa de senha","Digite sua nova senha.","Trocar","Cancelar");
if(fexist(ReturnFileUser(playerid)))
{
DOF2_SetString(ReturnFileUser(playerid),"Senha",inputtext);
DOF2_SaveFile();
}
new string[60];
format(string, sizeof(string), "Parabйns! Sua nova senha й {FFFF34}%s", inputtext);
SendClientMessage(playerid, -1, string);
return 1;
}
pawn Код:
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(359) : error 017: undefined symbol "LoadTextDraws"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(4683) : error 017: undefined symbol "ReturnFileUser"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(4687) : error 017: undefined symbol "ReturnFileUser"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(4699) : error 017: undefined symbol "ReturnFileUser"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(4701) : error 017: undefined symbol "ReturnFileUser"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(6402) : warning 225: unreachable code
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(6402) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(6402) : error 017: undefined symbol "cmd_precos"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(6402) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(6402) : fatal error 107: too many error messages on one line
@edit
Resolvi
no lugar de "ReturnFileUser" coloquei "Contas" й deu certo <3