14.10.2011, 15:04
to procurando o cmd trocar senha e nick alguem tem ai?
ShowPlayerDialog(playerid, 1, DIALOG_STYPE_INPUT,"Mudar Nick","Novo Nick:","Salvar","Oky");
if(dialogid == 1)
{
new string[24];
format(string, sizeof(string),"%s",inputtext);
SetPlayerName(playerid, string);
}
ShowPlayerDialog(playerid, 2, DIALOG_STYPE_INPUT,"Mudar Senha","Nova Senha:","Salvar","Oky");
if(dialogid == 2)
{
new string[24], l[24]; GetPlayerName(playerid, l, 24);
format(string, sizeof(string),"pasta_usuarios/%s.ini",i);
dini_Set(string,"Senha", inputtext);
}
C:\Documents and Settings\Don_Speed\Desktop\samp03csvr_R5_win32\gamemodes\Thug3.0.pwn(40927) : warning 213: tag mismatch
C:\Documents and Settings\Don_Speed\Desktop\samp03csvr_R5_win32\gamemodes\Thug3.0.pwn(44690) : error 010: invalid function or declaration
C:\Documents and Settings\Don_Speed\Desktop\samp03csvr_R5_win32\gamemodes\Thug3.0.pwn(44692) : error 010: invalid function or declaration
C:\Documents and Settings\Don_Speed\Desktop\samp03csvr_R5_win32\gamemodes\Thug3.0.pwn(44698) : error 010: invalid function or declaration
C:\Documents and Settings\Don_Speed\Desktop\samp03csvr_R5_win32\gamemodes\Thug3.0.pwn(44702) : error 010: invalid function or declaration
C:\Documents and Settings\Don_Speed\Desktop\samp03csvr_R5_win32\gamemodes\Thug3.0.pwn(44704) : error 010: invalid function or declaration
C:\Documents and Settings\Don_Speed\Desktop\samp03csvr_R5_win32\gamemodes\Thug3.0.pwn(45327) : warning 235: public function lacks forward declaration (symbol "PDetranA")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
if(dialogid == 405)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 0, DIALOG_STYPE_INPUT,"Mudar Nick","Novo Nick:","Trocar","Sair");
format(string, sizeof(str),"%s",inputtext);
SetPlayerName(playerid, string);
}
if(dialogid == 1)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYPE_INPUT,"Mudar Senha","Nova Senha:","Trocar","Sair");
format(string, sizeof(str),"%s.ini",i);
return 1;
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 405)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT,"Mudar Nick","Novo Nick:","Trocar","Sair");
SetPlayerName(playerid, inputtext);
}
if(dialogid == 1)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"Mudar Senha","Nova Senha:","Trocar","Sair");
new string[100], name[24]; GetPlayerName(playerid, name, 24);
format(string, sizeof(string),"%s.ini",name);
dini_Set(string,"Senha", inputtext);
}
}
return 1;
}