10.10.2009, 09:07
As you can see, inputtext[] is a string. Convert it to integer by using strval function.
Try and change this:
to this:
and this:
to this:
and this:
to this:
and this:
to this:
And use strlen to check the length of the string, not strval.
Try and change this:
pawn Код:
GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] += inputtext;
pawn Код:
GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] += strval(inputtext);
pawn Код:
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-inputtext;
pawn Код:
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-strval(inputtext);
pawn Код:
format(string, sizeof(string), " You Have Withdrawn $%d from your account Total: $%d ", inputtext,PlayerInfo[playerid][pAccount]);
pawn Код:
format(string, sizeof(string), " You Have Withdrawn $%d from your account Total: $%d ", strval(inputtext),PlayerInfo[playerid][pAccount]);
pawn Код:
format(string, sizeof(string), "Player %s took $%d from his account . Date:(%d-%d-%d)(%d:%d Uhr)", sendername,inputtext ,month,day,year,hour,minute);
pawn Код:
format(string, sizeof(string), "Player %s took $%d from his account . Date:(%d-%d-%d)(%d:%d Uhr)", sendername,strval(inputtext) ,month,day,year,hour,minute);

