Dini saving by pickup.
#1

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);
	}
Reply
#2

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);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)