02.06.2012, 19:33
Ta ae:
pawn Код:
if(dialogid == 1)
{
if(response == 1)
{
new money = strval(inputtext);
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(!IsNumeric(inputtext)){
SendClientMessage(playerid, Vermelho, "[ERRO] Valor invбlido !");
return 1;
}
if(dini_Int(file, "SaldoBancario") > money && money > 0){
format(string, sizeof(string), "[BANCO] Vocк sacou a quantia {00FF00}'R$:%d'", money);
SendClientMessage(playerid, Verde, string);
dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")-money);
GivePlayerGrana(playerid, money);
} else {
SendClientMessage(playerid, Vermelho, "[ERRO] Valor invбlido !");
}
}
}