12.08.2012, 12:19
I'm trying to create a function that gets faction's name from a file.
And this is what I got.
And an error!
I've been trying to figure this out for hours!
PS. Sorry for my English! I'm Thai!
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; }
Код:
error 046: unknown array size (variable "name")
PS. Sorry for my English! I'm Thai!