Mine
public text v1 · immutableReadConf()
{
new File:cfg=fopen("rumble.cfg", io_read);
new string[256];
while(fread(cfg, string)){
if(strcmp(string, "Time", true)==0) { MyVal=GetVal(1, string); }
}
}
GetVal(numb, str[]) {
new tmp[256], idx;
for(new i=0; i<numb; i++) {
tmp=strtok(str, idx);
}
return strval(tmp);
}