21.11.2013, 13:39
Hello,
I have problem with my filterscript when it create .cfg file in folder it don't load again I tried to fix but it don't load after new start of samp-server.exe. I tried to add printf and when I load it it start showing from print("11"); to print("21"); non stop.
EDIT: No Warnings/Errors
I have problem with my filterscript when it create .cfg file in folder it don't load again I tried to fix but it don't load after new start of samp-server.exe. I tried to add printf and when I load it it start showing from print("11"); to print("21"); non stop.
pawn Код:
stock split(const strsrc[], strdest[][], delimiter)
{
new i, li;
print("11");
new aNum;
print("12");
new len;
print("13");
while(i <= strlen(strsrc)){
print("14");
if(strsrc[i]==delimiter || i==strlen(strsrc)){
print("15");
len = strmid(strdest[aNum], strsrc, li, i, 128);
print("16");
strdest[aNum][len] = 0;
print("17");
li = i+1;
print("18");
aNum++;
print("19");
}
i++;
print("20");
}
print("21");
return 1;
}
EDIT: No Warnings/Errors