26.03.2011, 09:58
Hi guys, i have made this code... Deposit code....
But it don't work! just tell me i deposited 0 into my account, and really don't deposit nothing... It compile without any warmnings/errors..
Please help me
THANKS
THANKS
But it don't work! just tell me i deposited 0 into my account, and really don't deposit nothing... It compile without any warmnings/errors..
Please help me
THANKS
pawn Код:
COMMAND:deposit(playerid, params[])
{
new depositmoney;
new string[64];
if(!sscanf(params, "i", depositmoney))
{
if(depositmoney <= 10000000000)
{
format(string, sizeof(string), "You deposited %d money into your bank account!", depositmoney);
SendClientMessage(playerid, 0xB4B5B7FF, string);
PlayerInfo[playerid][Bank] += depositmoney;
GivePlayerMoney(playerid, -depositmoney);
return 1;
}
else return SendClientMessage(playerid, 0xB4B5B7FF, "You can't deposit so much!");
}
else return SendClientMessage(playerid, 0xB4B5B7FF, "USAGE: /deposit [MoneyAmmount]");
}