30.12.2011, 12:57
pawn Код:
if(fexist(caminho(playerid)))
{
INI_Open(caminho(playerid));
new string[64], v1, v2;
v1 = INI_ReadInt("v1");
v2 = INI_ReadInt("v2");
format(string, sizeof string, "%s, %s", v1, v2);
ShowPlayerDialog(playerid,dialogteste,DIALOG_STYLE_MSGBOX,"Dialog de Teste",string,"Fechar","");
INI_Save();
INI_Close();
}
pawn Код:
stock caminho(playerid)
{
new string[15+MAX_PLAYER_NAME];
format(string,sizeof(string),"/News/%s.ini",GetName(playerid));
return string;
}