09.09.2012, 04:31
pawn Код:
GetPlayerName(playerid,nome,24);
if(dialogid == DDEPOSITO)
{
if(response)
{
format(b_file,sizeof b_file,conta,nome);
if(GetPlayerMoneyEx(playerid) < strval(inputtext)) return SCM(playerid,-1,"nгo tem tudo isso а depositar.");
if(strval(inputtext) < 0) return SCM(playerid,-1,"Nada de numeros negativs");
format(strt,50,"vocк depositou R$%d.",strval(inputtext));
DOF2_SetInt(b_file, "dinheiro", strval(inputtext)+DOF2_GetInt(b_file,"dinheiro"));
DOF2_SaveFile();
SCM(playerid,-1,strt);
GivePlayerMoneyEx(playerid,-strval(inputtext));
ShowPlayerDialog(playerid,MENUBP,DIALOG_STYLE_LIST,"Menu bancбrio","Depуsito\nSaque\nSaldo","Ok","Fechar");
return 1;
}
return 1;
}

