Hallo
Ich bekomme diesen Error
array must be indexed (variable "Pass")
bei diesem dcmd code:
dcmd_adminlogin(playerid,params[])
{
new pname[MAX_PLAYER_NAME], path[200];
GetPlayerName(playerid, pname, sizeof(pname));
new Pass[256];
format(Pass,sizeof(Pass),"%s",dini_Get(path, "Adminpw"));
format(path, sizeof(path), "/System/Benutzer/%s.ini", pname);
new password[256];
if(pInfo[playerid][Adminreg]==0) SendClientMessage(playerid,0xFF0000FF,"Register a Admin account ! (/adminregister)");
else if(pInfo[playerid][Adminlog]==1) SendClientMessage(playerid,0xFF0000FF,"You allready loggedin as admin!");
else if(sscanf(params,"s",password)) SendClientMessage(playerid,0xFF0000FF,"Usage: /adminlogin [password]");
else if(!Pass == params) SendClientMessage(playerid,0xFF0000FF,"Wron Password");
else
{
SendClientMessage(playerid,0xFF0000FF,"Successfully loggedin as Admin!");
pInfo[playerid][Adminlevel] = dini_Int(path, "Adminlevel");
}
return 1;
}
kann mir einer helfen ?
EDIT:
Der error basiert auf diese zeile:
else if(!Pass == params) SendClientMessage(playerid,0xFF0000FF,"Wron Password");
//EDIT
kann mir keiner helfen ?