15.07.2015, 13:34
Command:
Line:
How can i solved it?
Код:
CMD:deposit(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid,50.0,2316.2244,-12.8453,26.7422)) { new money,string[128]; if(sscanf(params,"d",money)) return SendClientMessage(playerid,COLOR_WHITE,"{B8DBFF}Syntax: /deposit [amount]"); if(GetPlayerName(playerid) < money)return SendClientMessage(playerid,COLOR_WHITE,"SERVER:You don't have enough money to put in bank!"); new money1 = money; PlayerInfo[playerid][pBankmoney] += money; format(string,sizeof(string),"You have deposited $%d into your account!Your new balance is $%d.",money1,PlayerInfo[playerid][pBankmoney]); SendClientMessage(playerid,COLOR_WHITE,string); GivePlayerMoney(playerid,-money); return 1; } else { SendClientMessage(playerid,COLOR_WHITE,"You have to be inside the bank to deposit money!"); } return 1; }
Код:
if(GetPlayerName(playerid) < money)return SendClientMessage(playerid,COLOR_WHITE,"SERVER:You don't have enough money to put in bank!");