#1

Hi, I'm trying to read a dini file but it gives off the error:

error 006: must be assigned to an array


Код:
public CheckAdminLevel(playerid)
{
	new filestring[60];
        format(filestring,sizeof(filestring),"%s.ini",playerid);
	if(fexist(filestring))
	{
		adminlevel[playerid] = dini_Get(filestring,"AdminLevel"); // << This line has the error.
	}
	return adminlevel[playerid];
}
Reply
#2

I assume the adminlevel is stored as an integer (number) instead of a string, so you should use dini_Int, not dini_Get
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)