Function [HELP] - 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)
+--- Thread: Function [HELP] (
/showthread.php?tid=368167)
Function [HELP] -
suwapong1999 - 12.08.2012
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!
Re: Function [HELP] -
IceMeteor - 12.08.2012
And i dont think that format have a right parameters