28.02.2015, 01:31
If you use an inline function you need to call it as an inline
Way to much format in your code :/
pawn Код:
new file[128];
format(file, sizeof file, "races/%s.ini", racename);
INI_ParseFile(file, using inline loadracedata);
pawn Код:
inline loadracedata(string:name[],string:value[])
{
INI_Int("raceNumberCP", UtrkaInfo[raceNumberCP]);
new
scps[32] = "CPPos_",
cpsrc = UtrkaInfo[raceNumberCP]
;
while(cpsrc--)
{
valstr(scpc[6], cpsrc, false);
scpc[5] = 'X';
INI_Float(scps, CPInfo[cpsrc][cpX]);
scpc[5] = 'Y';
INI_Float(scps, CPInfo[cpsrc][cpY]);
scpc[5] = 'Z';
INI_Float(scps, CPInfo[cpsrc][cpZ]);
}
}

