Function [HELP]
#1

I'm trying to create a function that gets faction's name from a file.
And this is what I got.
Код:
stock GetFactionName(faction,const name[])
{
	new file[256];
	format(file,sizeof(file),FACTION_FILE,faction,"info");
	name = dini_Get(file,"name");
	return 1;
}
And an error!
Код:
error 046: unknown array size (variable "name")
I've been trying to figure this out for hours!
PS. Sorry for my English! I'm Thai!
Reply
#2

pawn Код:
new File:name
And i dont think that format have a right parameters
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)