savingg
#1

i made this
Код:
enum qinfo
{
	quest1,
}
new qInfo[MAX_PLAYERS][qinfo];
Код:
public OnPlayerConnect(playerid)
{
	quest1[playerid] = 0; // ERROR LINE
Код:
  new PName[MAX_PLAYER_NAME];
	new file[128];
	GetPlayerName(playerid, PName, MAX_PLAYER_NAME);
	format(file, sizeof(file), PLAYERFILE, udb_encode(PName));
	if(!dini_Exists(file))
	{
	  dini_Create(file);
		dini_IntSet(file, "quest1", 0);

	}

		 	qInfo[playerid][quest1] = dini_Int(file, "quest1");


		}
	}
Onplayerdisconnect
Код:
		dini_IntSet(file, "quest1", PInfo[playerid][quest1]);

	

	qInfo[playerid][quest1] = 0;
NOTE: i have commented line where those errors are


Код:
C:\Documents and Settings\ED\Desktop\Jauna mape\servaks 2\samp03svr_RC10-1_win32\gamemodes\AlienInvasion.pwn(161) : error 028: invalid subscript (not an array or too many subscripts): "quest1"
C:\Documents and Settings\ED\Desktop\Jauna mape\servaks 2\samp03svr_RC10-1_win32\gamemodes\AlienInvasion.pwn(161) : warning 215: expression has no effect
C:\Documents and Settings\ED\Desktop\Jauna mape\servaks 2\samp03svr_RC10-1_win32\gamemodes\AlienInvasion.pwn(161) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\ED\Desktop\Jauna mape\servaks 2\samp03svr_RC10-1_win32\gamemodes\AlienInvasion.pwn(161) : error 029: invalid expression, assumed zero
C:\Documents and Settings\ED\Desktop\Jauna mape\servaks 2\samp03svr_RC10-1_win32\gamemodes\AlienInvasion.pwn(161) : fatal error 107: too many error messages on one line
Can someone help me?
Reply


Messages In This Thread
savingg - by armyoftwo - 06.12.2009, 09:03
Re: savingg - by dice7 - 06.12.2009, 09:40
Re: savingg - by armyoftwo - 06.12.2009, 09:51
Re: savingg - by dice7 - 06.12.2009, 10:22
Re: savingg - by armyoftwo - 06.12.2009, 11:27
Re: savingg - by armyoftwo - 06.12.2009, 15:48
Re: savingg - by dice7 - 06.12.2009, 16:27
Re: savingg - by armyoftwo - 07.12.2009, 13:08

Forum Jump:


Users browsing this thread: 1 Guest(s)