Hallo,
ich wollte mal fragen warum er bei dieser Rekursion
forward GenerateKontoNumber(playerid, randomNumber);
public GenerateKontoNumber(playerid, randomNumber)
{
for(new acc; acc < MAX_BANK_ACCOUNTS; acc++)
{
if(acc != MAX_BANK_ACCOUNTS)
{
if(bAccount[acc][Number] == randomNumber)
{
//1000000000 + random(8999999999)
return GenerateKontoNumber(playerid, 10 + random(40));
}
}
else
{
SendClientMessage(playerid, COLOR_ERROR, "* Es wurde die maximale Anzahl an Bank Konten erreicht!");
DeletePVar(playerid, "Konto_Art"); DeletePVar(playerid, "Konto_Type");
DeletePVar(playerid, "Konto_Rate"); DeletePVar(playerid, "Konto_MaxMoney");
DeletePVar(playerid, "Konto_Payment"); DeletePVar(playerid, "Konto_Overdrawable");
DeletePVar(playerid, "Konto");
break;
}
}
return randomNumber;
}
immer nur randomNumber returnt ?