25.06.2018, 11:03
Hi all. Have problem with code. I have this:
And then after server start
This code working good. But now I trying to this:
And I getting error: argument type mismatch. Is it possible, to use FractionName from variable, like I trying to do?
Код:
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; }
Код:
CreateFraction("FracName", 237.2637,110.7220,8000.2188, 0, 20000, 0,0,"test","E55B3C","/test");
Код:
CreateFraction("%i", 237.2637,110.7220,8000.2188, 0, 20000, 0,0,"test","E55B3C","/test",myname);