27.10.2010, 23:08
When i send money to a player they do not see that they got it, i see, but i cant see what i am doing wrong.
Can you look at the script and see the prob for me and correct it? Please
Oh btw i am using aBank FS.
Can you look at the script and see the prob for me and correct it? Please
Oh btw i am using aBank FS.
pawn Код:
new file2[50], string2[MAX_PLAYER_NAME],N[MAX_PLAYERS],sname[MAX_PLAYER_NAME],player;
GetPVarString(playerid, "transfer_name", string2, sizeof(string2));
format(file2, sizeof(file2), BANK_FILE, string2);
dini_IntSet(file, "Balance", dini_Int(file, "Balance")-strval(inputtext));
dini_IntSet(file2, "Balance", dini_Int(file2, "Balance")+strval(inputtext));
format(string, sizeof(string), "Success: You have transfered $%d to %s's account.", strval(inputtext), string2);
SendClientMessage(playerid, COLOR_GREEN, string);
{
GetPlayerName(player, sname, sizeof(sname));
format(string, sizeof(string), "$%d has been wired to your account by %s.",strval(inputtext),sname);
}SendClientMessage(player,0xFFD7C4FF,string);
SetPVarString(playerid, "transfer_name", " ");
ShowPlayerBankDialog(playerid);