Kütüphane★ 5Nis 2019 güncellendiMITPawnsampctlArşivlendi
GitHub’da açYazar bu depoyu arşivledi, bu yüzden artık bakımı yapılmıyor.
sampctl ile kur
sampctl package install Southclaws/pawn-levenshtein
Bunu proje klasöründe çalıştır. sampctl paketi ve bağımlı olduklarını indirir.
1 pakete bağımlı
- southclaws/samp-stdlibbu dizinde değil
README.md
levenshtein.inc
https://en.wikipedia.org/wiki/Levenshtein_distance
Usage
Simply add to your pawn.json and include:
{
"dependencies": ["ScavengeSurvive/levenshtein"]
}
The function levenshtein simply takes two strings and returns a score that indicates the difference.
#include <levenshtein>
main() {
new difference = levenshtein("these strings are similar, but not the same", "these strings ar similar, but no the same");
printf("%d", difference);
}
Testing
To test, simply run the package:
sampctl package run
Then connect to localhost:7777.
Bu sayfa GitHub’ın depo hakkında yayımladıklarından oluşturulur. samp.directory kodu barındırmaz. Bu ilanla ilgili bir sorun bildir