All pastes #285032 Raw Edit

Mine

public text v1 · immutable
#285032 ·published 2006-12-19 15:37 UTC
rendered paste body
ReadConf()
{
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);
}