Posts: 6,129
Threads: 36
Joined: Jan 2009
You need to create your splits function code, you can't just use the 'forward' function and expect the function to exist.
Judging by a ****** search, your code should be as follows:
pawn Код:
forward splits(const strsrc[], strdest[][], delimiter);
public splits(const strsrc[],strdest[][],delimiter)
{
new aNum, len, i, li;
while(i <= strlen(strsrc))
{
if(strsrc[i] == delimiter || i == strlen(strsrc))
{
len = strmid(strdest[aNum],strsrc,li,i,128);
strdest[aNum][len] = false;
li = i+1;
aNum++;
}
i++;
}
return 1;
}