Discord sunucumuz açılmıştır, hepinizi bekleriz

https://discord.gg/43gGDQe6tS

dil eklentisi

Diğer forum kategorileri dışında kalan herşey.

Moderatör: Moderatörler

Kullanıcı avatarı

Konu Sahibi
HakimKILLER44
Mesajlar: 155
Kayıt: Cum Ağu 13, 2021 8:56 pm
Konum: Azerbeycan
Server Ip/DNS: 147.185.221.16:26504

dil eklentisi

Mesaj gönderen HakimKILLER44 »

merhabalar arkadaslar. bana bir dil eklentisi lazim. get_user_language(id) - > gibi. oyun turkce dildirse turkce sesler ingilisceyse ingilisce seslerin gelmesini istiyorum. yardim eden ve etmeyen arkadaslarima simdiden tesekur ederim

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

Konu Sahibi
HakimKILLER44
Mesajlar: 155
Kayıt: Cum Ağu 13, 2021 8:56 pm
Konum: Azerbeycan
Server Ip/DNS: 147.185.221.16:26504

dil eklentisi

Mesaj gönderen HakimKILLER44 »

Kod: Tümünü seç

/* Language functions
*
* by the AMX Mod X Development Team
*
* This file is provided as is (no warranties).
*/

#if defined _lang_included
  #endinput
#endif
#define _lang_included

//return the number of languages loaded
native get_langsnum();

//sets name to the two-letter name of a language returned by get_langsnum
//index starts at 0
native get_lang(id, name[3]);

//registers a dictionary file, making sure the words are in the dictionary
// the file should be in "addons/amxx/data/lang/", but only the name needs to be
// given.  (e.g. register_dictionary("file.txt") will be addons/amxx/data/file.txt).
native register_dictionary(const filename[]);

//returns 1 if the language is loaded, 0 otherwise.
native lang_exists(const name[]);

enum TransKey
{
	TransKey_Bad = -1,
};

/**
 * Adds or finds a translation key.
 */
native TransKey:CreateLangKey(const key[]);

/**
 * Finds a translation key id without adding on failure.
 * Returns -1 on not found.
 */
native TransKey:GetLangTransKey(const key[]);

/**
 * Adds a translation.
 */
native AddTranslation(const lang[3], TransKey:key, const phrase[]);

/**
 * Looks up the translation of the key for the given type
 * This does NOT format the output text.
 * eg: If the key includes %s, the outputted text will also contain %s.
 * NOTE: LANG_PLAYER is invalid in this, use a player index
 *       or LANG_SERVER
 */
native LookupLangKey(Output[], OutputSize, const Key[], const &id);
Bunlar bir ise yarar belki

Link:
Linklerini gizle
Linki Kopyala
Cevapla