public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[256];
new sendername[MAX_PLAYER_NAME];
if(dialogid == 1)
{
if(strval(inputtext))
{
if(strval(inputtext) <= PlayerInfo[playerid][pAccount] || strval(inputtext) >= 1)
{
ConsumingMoney[playerid] = 1;
GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] += inputtext;
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-inputtext;
format(string, sizeof(string), " You Have Withdrawn $%d from your account Total: $%d ", inputtext,PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_YELLOW, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
new hour, minute, year, month, day;
getdate(year, month, day);
gettime(hour, minute);
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);
MoneyLog(string);
return 1;
}
}
}
return 0;
}
GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] += inputtext;
GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] += strval(inputtext);
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-inputtext;
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-strval(inputtext);
format(string, sizeof(string), " You Have Withdrawn $%d from your account Total: $%d ", inputtext,PlayerInfo[playerid][pAccount]);
format(string, sizeof(string), " You Have Withdrawn $%d from your account Total: $%d ", strval(inputtext),PlayerInfo[playerid][pAccount]);
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);
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);
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[256];
new sendername[MAX_PLAYER_NAME];
if(dialogid == 1)
{
if(IsNumeric(strlen(inputtext)))
{
if(strlen(inputtext) <= PlayerInfo[playerid][pAccount] || strlen(inputtext) >= 1)
{
ConsumingMoney[playerid] = 1;
GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] += strval(inputtext);
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-strval(inputtext);
format(string, sizeof(string), " You Have Withdrawn $%d from your account Total: $%d ", strval(inputtext),PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_YELLOW, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
new hour, minute, year, month, day;
getdate(year, month, day);
gettime(hour, minute);
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);
MoneyLog(string);
return 1;
}
}
}
return 0;
}
if(IsNumeric(strlen(inputtext)))
error 035: argument type mismatch (argument 1)
Originally Posted by #.'
What is wrong here?
pawn Код:
Error: pawn Код:
|
if(IsNumeric(inputtext))