how to fix this 1 error?
#1

Код:
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;
}
Reply
#2

Where is that file's location?
Reply
#3

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

Thanx
Reply
#5

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

how i add the format thing?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)