Guten Tag,
ich habe ein Problemm mit ein Dialog System hier mal die funktion:
if(dialogid == 1991)
{
if(response)
{
if(IsNumeric(inputtext))
{
if (strval(inputtext) > PlayerInfo[playerid][pAccount] || strval(inputtext) < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "Du hast nicht genug Geld.");
return 1;
}
else
{
ConsumingMoney[playerid] = 1;
GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] += strval(inputtext);
PlayerInfo[playerid][pAccount] = PlayerInfo[playerid][pAccount] - strval(inputtext);
format(string, sizeof(string), " Du hast $%d von deinem Bankkonto abgehoben. Dein aktueller Kontostand ist: $%d ", strval(inputtext),PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_YELLOW, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Spieler %s hat $%d von seinem Bankkonto abgehoben. Bankkonto Status: $%d. Datum:(%d-%d-%d)(%d:%d Uhr)", sendername,strval(inputtext),PlayerInfo[playerid][pAccount],month,day,year,hour,minute);
MoneyLog(string);
return 1;
}
}
}
}
if(dialogid == 1992)
{
if(response)
{
if(IsNumeric(inputtext))
{
if(strval(inputtext) > PlayerMoney[playerid] || strval(inputtext) < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "Du hast nicht genug Geld.");
return 1;
}
else
{
PlayerInfo[playerid][pOldMoney] = PlayerMoney[playerid];
PlayerInfo[playerid][pDep] = 1;
GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] -= strval(inputtext);
new curfunds = PlayerInfo[playerid][pAccount];
PlayerInfo[playerid][pAccount] = strval(inputtext)+PlayerInfo[playerid][pAccount];
SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATUS ___|");
format(string, sizeof(string), " Alter Kontostand: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), " Eingezahlt: $%d",strval(inputtext));
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
format(string, sizeof(string), " Neuer Kontostand: $%d", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_WHITE, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Spieler %s hat $%d in seinen Bankkonto eingezahlt. Bankkonto Status: $%d . Datum:(%d-%d-%d)(%d:%d Uhr)", sendername,strval(inputtext),PlayerInfo[playerid][pAccount] ,month,day,year,hour,minute);
MoneyLog(string);
return 1;
}
}
}
}
Und hier mal den Error:
Zitat(42965) : error 017: undefined symbol "GetsMoney"
(42965) : warning 215: expression has no effect
(42965) : error 001: expected token: ";", but found "]"
(42965) : error 029: invalid expression, assumed zero
(42965) : fatal error 107: too many error messages on one line