new v_prioid; new filename[MAX_STRING]; new linecount = 0; new prio_count; format(filename, sizeof (filename), "%sGTO.vehiclespawns.txt",VehicleDB); new idx; new temp[256]; new File:fhandle; fhandle = fopen(filename,io_read); while (fread(fhandle,temp,sizeof(temp))) { linecount++; temp = strrest(temp,0); v_prioid = strval(strcharsplit(temp, idx,strchar(","))); new string[256]; format(string, sizeof(string), "%d",v_prioid); printf(string); if(v_prioid == 1) { prio_count++; PriorityCars[prio_count] = linecount; } } fclose(fhandle); These are the functions used; public strcharsplit(string[], &index,seperator) { new result[MAX_STRING]; new idxpos = index; for (new i=index;i