05.09.2009, 08:52
Код:
#define MIN_PHONE_NUM 100000 #define MAX_PHONE_NUM 999999 stock GetPlayerNameByPhone(phonenumb) { new phone[64], name[MAX_PLAYER_NAME] = "Nobody"; for(new p = MIN_PHONE_NUM; p <= MAX_PHONE_NUM; p++) { format(phone, sizeof(phone), "/Phones/%s.dini.save", GetName(p)); if(dini_Int(phone, "Number") == phonenumb) { name = GetName(p); } } return name; }
Basically my real problem is how the hell do i loop through 888888 player files?