ZitatAlles anzeigenC:\Game's\RL.pwn(1591) : warning 217: loose indentation
C:\Game's\RL.pwn(1604) : error 017: undefined symbol "IsNumeric"
C:\Game's\RL.pwn(1617) : error 017: undefined symbol "dini_SetInt"
C:\Game's\RL.pwn(1618) : error 017: undefined symbol "dini_SetInt"
C:\Game's\RL.pwn(1619) : error 035: argument type mismatch (argument 3)
C:\Game's\RL.pwn(1609) : warning 204: symbol is assigned a value that is never used: "kontonummer"
C:\Game's\RL.pwn(1609 -- 1624) : warning 217: loose indentation
C:\Game's\RL.pwn(1648) : error 047: array sizes do not match, or destination array is too small
C:\Game's\RL.pwn(1649) : error 017: undefined symbol "dini_GetInt"
C:\Game's\RL.pwn(1655) : error 035: argument type mismatch (argument 2)
C:\Game's\RL.pwn(1795) : error 029: invalid expression, assumed zero
C:\Game's\RL.pwn(1795 -- 1796) : error 029: invalid expression, assumed zero
C:\Game's\RL.pwn(1796) : error 029: invalid expression, assumed zero
C:\Game's\RL.pwn(1796) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
11 Errors.
if(strcmp(cmd,"/bankregister",true)==0)
{
new file[256];
new playername[24];
if(PlayerInfo[playerid][pJob]!=Bänker) return SendClientMessage(playerid,RED, "Du bist kein Bänker!");
GetPlayerName(playerid,playername,sizeof(playername));
format(file,sizeof(file),"/bank/%s.ini",udb_encode(playername));
if(dini_Exists(file))
{
SendClientMessage(playerid,DarkGreen,"Die Bank Name/id ist beraits Vorhanden Bitte nemme ein anderenen");
return 1;
}
tmp = strtok(cmdtext,idx);
if(strlen(tmp) != 6 || !IsNumeric(tmp))
{
SendClientMessage(playerid,DarkGreen,"Nutze: /bankregister [kontonummer 6 Zahlen] [pin 4-10 Zeichen]");
return 1;
}
new kontonummer = strval(tmp);
tmp = strtok(cmdtext,idx);
if(strlen(tmp) < 4 || strlen(tmp) > 10)
{
SendClientMessage(playerid,DarkGreen,"Nutze: /bankregister [kontonummer 6 Zahlen] [pin 4-10 Zeichen]");
return 1;
}
dini_Create(file);
dini_SetInt(file,"balance",-100);
dini_SetInt(file,"kontonummer",kontonummer);
dini_Set(file,"password",udb_hash(tmp));
BankLogged[playerid] = false;
SendClientMessage(playerid,DarkGreen,"Das Bank Konto Wurde Erfolgreich erstellt");
return 1;
}
if(strcmp(cmd,"/banklogin",true)==0)
{
new playername[24];
new file[256];
GetPlayerName(playerid,playername,sizeof(playername));
format(file,sizeof(file),"/bank/%s.ini",udb_encode(playername));
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,DarkGreen,"USAGE : /banklogin [kontonummer] [password]");
return 1;
}
new kontonummer = strval(tmp);
if(!dini_Exists(file))
{
SendClientMessage(playerid,DarkGreen,"Du hast kein Bank Konto , Frag nach einen Bänker Nach");
return 1;
}
if(BankLogged[playerid])
{
SendClientMessage(playerid,DarkGreen,"Du bist bereits in ein Bank Konto eingellogt");
return 1;
}
new fpass[10], kontonummer2;
fpass = dini_Get(file,"password");
kontonummer2 = dini_GetInt(file,"kontonummer");
if(kontonummer != kontonummer2)
{
SendClientMessage(playerid,DarkGreen,"Falsche Kontonummer!");
return 1;
}
if(strcmp(fpass,udb_hash(tmp),false))
{
SendClientMessage(playerid,DarkGreen,"Falsches Password!");
return 1;
}
SendClientMessage(playerid,DarkGreen," Erfolgreich eingeloggt!");
BankLogged[playerid]=true;
}
Ich Hoffe mir kann jemand Helfen