SA-MP Forums Archive
help with stupid glitch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with stupid glitch (/showthread.php?tid=86885)



help with stupid glitch - Annihalation - 16.07.2009

Pawno wont compile this filterscript because of an error "dini_Exsist" isn't defined... but I used dini_Exsist earlier in the filterscript!!

Here's the code that im working with, and where the errors are:

Код:
public OnPlayerDisconnect(playerid, reason)
{
	logged[playerid] = 0;
	new file[256], string[256];
	new spawninfo[256], pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pname, sizeof(pname));
	format(file, sizeof(file), "%s.ini", pname);
	if(dini_Exsists(file)) // <--- error line: undefined symbol "dini_Exsist" (theres only one error in the whole thing, and that is this line)
	{
  	dini_IntSet(file, "level", 0);
  	dini_IntSet(file, "score", GetPlayerScore(playerid));
		dini_IntSet(file, "money", GetPlayerMoney(playerid));
		dini_IntSet(file, "bank", BankBalance[playerid]);
	}
}
I tried replacing it with the built-in "fexsist" function, but then i got an error message that fexsist wasn't defined either! This is stupid, can someone help?


Re: help with stupid glitch - Khelif - 16.07.2009

dini_Exists


Re: help with stupid glitch - Annihalation - 16.07.2009

It is in there as dini_Exsists , but it doesnt work. Look at the code, not at my message

I don't understand if its a glitch or what, but it was telling me that the built in function "fexsist" was undefined...


Re: help with stupid glitch - woot - 16.07.2009

Seriously, learn to read, lol.

dini_Exists != dini_Exsists