SA-MP Forums Archive
how to fix this 1 error? - 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: how to fix this 1 error? (/showthread.php?tid=144863)



how to fix this 1 error? - hardstop - 29.04.2010

Код:
C:\Documents and Settings\hardstop\Desktop\server(Uus Sьsteem)\gamemodes\server3.0.pwn(1037) : error 017: undefined symbol "file"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
i added this to my dialog

if(listitem == 0) //Suitsud
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMO KE_CIGGY);
GivePlayerMoney(playerid, -45);
dini_IntSet(file,"Alcohol", 1);


This is my dialog

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

	if (dialogid == 111)
	{
	if(response)
	{
	if(listitem == 0) //Suitsud
 	{
 	SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
	GivePlayerMoney(playerid, -45);
	dini_IntSet(file,"Juua", 0);
	}
	if(listitem == 1) //Хlu
 	{
 	SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
	GivePlayerMoney(playerid, -60);
	}
	if(listitem == 2) //
	{
	GivePlayerMoney(playerid, -85);
	}
	}
	return 1;
	}

  return 0;
}



Re: how to fix this 1 error? - MadeMan - 29.04.2010

Where is that file's location?


Re: how to fix this 1 error? - [MWR]Blood - 29.04.2010

Put this
pawn Код:
new file[256];



Re: how to fix this 1 error? - hardstop - 29.04.2010

Thanx


Re: how to fix this 1 error? - MadeMan - 29.04.2010

Quote:
Originally Posted by ikarus❶❸❸❼
Put this
pawn Код:
new file[256];
You also need to format this string or it won't work.


Re: how to fix this 1 error? - hardstop - 29.04.2010

how i add the format thing?