Help with variable
#1

Hi all. Have problem with code. I have this:
Код:
stock CreateFraction(FractionName[], Float:EnterX, Float:EnterY, Float:EnterZ, id, lvl, skini, uzdyrba,galininka[],spalv[],koma[], virtualus =0)
{
	new fquery[100];
	format(workInfo[workid][nam], 100, "%s", FractionName);
	format(workInfo[workid][spalva], 7, "%s", spalv);
	format(workInfo[workid][galininkas], 100, "%s", galininka);
	format(workInfo[workid][komanda], 20, "%s", koma);
	workInfo[workid][jobid] = id;
	workInfo[workid][skinid] = skini;
	workInfo[workid][lvlneed] = lvl;
	workInfo[workid][uzdirba] = uzdyrba;
	workInfo[workid][checkpointidx] = CreatePickupA(1275 ,2, EnterX, EnterY, EnterZ,virtualus);
	format(fquery,sizeof(fquery),"SELECT * FROM `darbai` WHERE `id` = '%i'",id);
	mysql_function_query(MysqlConnection,fquery,true,"DarbuLoad","d",workid);
	workid ++;
	return 1;
}
And then after server start
Код:
CreateFraction("FracName", 237.2637,110.7220,8000.2188, 0, 20000, 0,0,"test","E55B3C","/test");
This code working good. But now I trying to this:
Код:
CreateFraction("%i", 237.2637,110.7220,8000.2188, 0, 20000, 0,0,"test","E55B3C","/test",myname);
And I getting error: argument type mismatch. Is it possible, to use FractionName from variable, like I trying to do?
Reply


Messages In This Thread
Help with variable - by ,TomY' - 25.06.2018, 11:03
Re: Help with variable - by div - 25.06.2018, 11:17
Re: Help with variable - by ,TomY' - 25.06.2018, 12:20
Re: Help with variable - by Verc - 25.06.2018, 12:38
Re: Help with variable - by div - 25.06.2018, 13:02
Re: Help with variable - by ,TomY' - 25.06.2018, 15:00
Re: Help with variable - by div - 25.06.2018, 15:04
Re: Help with variable - by GTLS - 25.06.2018, 17:13
Re: Help with variable - by ,TomY' - 26.06.2018, 06:54
Re: Help with variable - by Verc - 26.06.2018, 07:16

Forum Jump:


Users browsing this thread: 1 Guest(s)