SA-MP Forums Archive
Dini saving by pickup. - 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: Dini saving by pickup. (/showthread.php?tid=102127)



Dini saving by pickup. - cepiokas - 13.10.2009

I have registration system with Dini. And i want to make, that it's gonna be saevd by a pickup. But errors..:
Код:
C:\Documents and Settings\Samsung\Desktop\sLife v1.0\gamemodes\sLife.pwn(608) : error 017: undefined symbol "file"
C:\Documents and Settings\Samsung\Desktop\sLife v1.0\gamemodes\sLife.pwn(608) : warning 215: expression has no effect
C:\Documents and Settings\Samsung\Desktop\sLife v1.0\gamemodes\sLife.pwn(608) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Samsung\Desktop\sLife v1.0\gamemodes\sLife.pwn(608) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Samsung\Desktop\sLife v1.0\gamemodes\sLife.pwn(608) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
608:
Код:
dini_IntSet(file,"Admin", pInfo[playerid][Admin]);
My code:
Код:
if(pickupid == saving)
	{
	dini_IntSet(file,"Admin", pInfo[playerid][Admin]);
  GameTextForPlayer(playerid,"Your Game Saved",2500,3);
	}



Re: Dini saving by pickup. - KKashimia - 13.10.2009

pawn Код:
if(pickupid == saving)
{
    new file[128]="somepath/somefile.someextension"; // Make sure you tell the script where to save the data (filename).
    dini_IntSet(file,"Admin", pInfo[playerid][Admin]);
    GameTextForPlayer(playerid,"Your Game Saved",2500,3);
}