error 022: must be lvalue (non-constant)
#1

stock AdminRank(playerid)
{
new file[64];
GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
format(file, 64, "Admin/Users/%s.ini", pname);
return DOF2_GetInt(file, "AdminRank");
}

The error line: AdminRank(playerid) = DOF2_GetInt(GetFile(playerid), "AdminRank");

pliz helpp!!
Reply
#2

Код:
stock AdminRank(playerid)
{
new file[64],temp;
GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
format(file, 64, "Admin/Users/%s.ini", pname);
temp=DOF2_GetInt(file, "AdminRank");
return temp;
}
Reply
#3

still error about this line:
AdminRank(playerid) = DOF2_GetInt(GetFile(playerid), "AdminRank");

error:
error 022: must be lvalue (non-constant)
Reply
#4

What the hell are you even doing. Assigning a value to a function? This makes no sense. At all.
Reply
#5

So how do I define the value of AdminLevel?
Reply
#6

Help Pliz!!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)