26.08.2016, 15:05
Код:
enum anarraydata {id, something, somethingdifferent, and it goes...}; //look the id at beginning. new anarray[200000][anarraydata]; stock multisearchbyid(myarr[][], findval, myarrsize = sizeof(myarr), isfound=0){ for(new i=0; i<myarrsize; i++) { if(myarr[i][id] == findval) { //there is a problem in here. id probably making an issue. isfound= i; break; } } return isfound; }