Question

DreamHarakiri
React разработчик
Спойлер

id36lLeFeTA.jpg

Плагин CRP пробовал, эффекта 0

Share this post


Link to post

28 answers to this question

  • 0
DEST
Maintainer

@Remmi_Feed значит это плеерный TextDraw на него CRP не работает. Вот фикс (замените инклуд crp на этот и перекомпилируйте мод): 
p.s. расширение поменяйте на .inc

crp.txt

Share this post


Link to post
  • 0
DreamHarakiri
React разработчик

@DEST с остальными TD работать будет? Или он только для плеерного?

Share this post


Link to post
  • 0
DreamHarakiri
React разработчик

мне предложили: 

Спойлер

stock RusText(string[])
{
	rus_text = "";
	for(new i = 0; i < sizeof(rus_text); i++)
	{
		switch(string[i])
		{
			case 'а':rus_text[i] = 'a'; // Me®«
			case 'А':rus_text[i] = 'A';
			case 'б':rus_text[i] = '—';
			case 'Б':rus_text[i] = 'Ђ';
			case 'в':rus_text[i] = 'ў';
			case 'В':rus_text[i] = '‹';
			case 'г':rus_text[i] = '™';
			case 'Г':rus_text[i] = '‚';
			case 'д':rus_text[i] = 'љ';
			case 'Д':rus_text[i] = 'ѓ';
			case 'е':rus_text[i] = 'e';
			case 'Е':rus_text[i] = 'E';
			case 'ё':rus_text[i] = 'e';
			case 'Ё':rus_text[i] = 'E';
			case 'ж':rus_text[i] = '›';
			case 'Ж':rus_text[i] = '„';
			case 'з':rus_text[i] = 'џ';
			case 'З':rus_text[i] = '€';
			case 'и':rus_text[i] = 'њ';
			case 'И':rus_text[i] = '…';
			case 'й':rus_text[i] = 'њ';
			case 'Й':rus_text[i] = '…';
			case 'к':rus_text[i] = 'k';
			case 'К':rus_text[i] = 'K';
			case 'л':rus_text[i] = 'ћ';
			case 'Л':rus_text[i] = '‡';
			case 'м':rus_text[i] = 'Ї';
			case 'М':rus_text[i] = 'M';
			case 'н':rus_text[i] = '®';
			case 'Н':rus_text[i] = 'H';
			case 'о':rus_text[i] = 'o';
			case 'О':rus_text[i] = 'O';
			case 'п':rus_text[i] = 'Ј';
			case 'П':rus_text[i] = 'Њ';
			case 'р':rus_text[i] = 'p';
			case 'Р':rus_text[i] = 'P';
			case 'с':rus_text[i] = 'c';
			case 'С':rus_text[i] = 'C';
			case 'т':rus_text[i] = '¦';
			case 'Т':rus_text[i] = 'T';
			case 'у':rus_text[i] = 'y';
			case 'У':rus_text[i] = 'Y';
			case 'ф':rus_text[i] = '¦';
			case 'Ф':rus_text[i] = '¦';
			case 'х':rus_text[i] = 'x';
			case 'Х':rus_text[i] = 'X';
			case 'ц':rus_text[i] = '*';
			case 'Ц':rus_text[i] = '‰';
			case 'ч':rus_text[i] = '¤';
			case 'Ч':rus_text[i] = '¦';
			case 'ш':rus_text[i] = 'Ґ';
			case 'Ш':rus_text[i] = 'Ћ';
			case 'щ':rus_text[i] = 'Ў';
			case 'Щ':rus_text[i] = 'Љ';
			case 'ь':rus_text[i] = '©';
			case 'Ь':rus_text[i] = '’';
			case 'ъ':rus_text[i] = '¦';
			case 'Ъ':rus_text[i] = '§';
			case 'ы':rus_text[i] = 'Ё';
			case 'Ы':rus_text[i] = '‘';
			case 'э':rus_text[i] = 'Є';
			case 'Э':rus_text[i] = '“';
			case 'ю':rus_text[i] = '«';
			case 'Ю':rus_text[i] = '”';
			case 'я':rus_text[i] = '¬';
			case 'Я':rus_text[i] = '•';
			default:rus_text[i] = string[i];
		}
	}
	return rus_text;
}

 

 

@DEST 

Спойлер

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[20:48:10] filterscripts = ""  (string)
[20:48:10] 
[20:48:10] Server Plugins
[20:48:10] --------------
[20:48:10]  Loading plugin: mysql.dll
[20:48:10]  >> plugin.mysql: R39-5 successfully loaded.
[20:48:10]   Loaded.
[20:48:10]  Loading plugin: CRP.dll
[20:48:10] 

[20:48:10] ______________________________________

[20:48:10]  Convert Rus To Pwn v0.1.1 loaded
[20:48:10] ______________________________________

[20:48:10]  By: Fro (c) Copyright <TBG> 2009-2011
[20:48:10] ______________________________________

[20:48:10]   Loaded.
[20:48:10]  Loading plugin: pwn_mail_exploder.dll
[20:48:10] 

[20:48:10] [PME] Error in initialization: SMTP server address can't be empty!

[20:48:10]   Loaded.
[20:48:10]  Loading plugin: regex.dll
[20:48:10] 


[20:48:10] ______________________________________


[20:48:10]  Regular Expression Plugin v0.2.1 loaded
[20:48:10] ______________________________________


[20:48:10]  By: Fro (c) Copyright <TBG> 2009-2011
[20:48:10] ______________________________________


[20:48:10]   Loaded.
[20:48:10]  Loading plugin: sscanf.dll
[20:48:10] 

[20:48:10]  ===============================

[20:48:10]       sscanf plugin loaded.     

[20:48:10]          Version:  2.8.2        

[20:48:10]    (c) 2012 Alex "Y_Less" Cole  

[20:48:10]  ===============================

[20:48:10]   Loaded.
[20:48:10]  Loading plugin: crashdetect.dll
[20:48:10]   CrashDetect v4.15.1 is OK.
[20:48:10]   Loaded.
[20:48:10]  Loading plugin: streamer.dll
[20:48:10] 

*** Streamer Plugin v2.8.2 by Incognito loaded ***

[20:48:10]   Loaded.
[20:48:10]  Loading plugin: dc_cmd.dll
[20:48:10]   Daniel's CMD plugin v2.8
[20:48:10]     (c) 2014 Daniel_Cortez
[20:48:10] 	www.pro-pawn.ru
[20:48:10]   Loaded.
[20:48:10]  Loading plugin: SuperSlot.dll
[20:48:10]  SuperSlot plugin for SA:MP Server 0.3.7 R2-1 loaded! (http://vk.com/povargek)
[20:48:10]   Loaded.
[20:48:10]  Loading plugin: pawnregex.dll
[20:48:10] Pawn.Regex plugin v1.1 by urShadow loaded
[20:48:10]   Loaded.
[20:48:10]  Loaded 10 plugins.

[20:48:10] 
[20:48:10] Filterscripts
[20:48:10] ---------------
[20:48:10]   Loaded 0 filterscripts.

[20:48:11] 
	[S] Маппинг успешно загружен
[20:48:11] 	[S] Всего было загружено 25536 объект(ов)

[20:48:11]   Filterscript 'suprotek.amx' loaded.
[20:48:11] Подключение c базой данных сервера успешно установлено!
[20:48:11] Начинается загрузка данных...
[20:48:11] Number of vehicle models: 27
[20:48:11] Server password has been removed.
[20:48:11] [debug] Run time error 4: "Array index out of bounds"
[20:48:11] [debug]  Accessing element at index 1 past array upper bound 0
[20:48:11] [debug] AMX backtrace:
[20:48:11] [debug] #0 000b8190 in public @_LoadMine () from fix05.amx
[20:48:28] [connection] 127.0.0.1:54451 requests connection cookie.
[20:48:29] [connection] incoming connection: 127.0.0.1:54451 id: 0
[20:48:29] [join] Jony_Boynya has joined the server (0:127.0.0.1)
[20:48:38] [part] Jony_Boynya has left the server (0:1)

 

 

Edited by Remmi_Feed

Share this post


Link to post
  • 0
DEST
Maintainer

@Remmi_Feed возможно, crp не работает для SAMP, а возможно и ты что-то не так сделал. В CRMP у меня работало 100%. 

Share this post


Link to post
  • 0
DreamHarakiri
React разработчик

@DEST даже не знаю что и делать то. Однако то что мне посоветовали проблема, выдает ошибку

error 010: invalid function or declaration

Дополнение:

Притензии именно к return rus_text;

Edited by Remmi_Feed

Share this post


Link to post
  • 0
DreamHarakiri
React разработчик

@DEST и как активировать?

точнее как перевести TD на русский язык с помощью функции?

Edited by Remmi_Feed

Share this post


Link to post
  • 0
DEST
Maintainer

@Remmi_Feed RusText("Текст_На_Русском");

Например, в создании текстдравов: 
 

TextDrawCreate(x, y, RusText("Нажмите 'F' для продолжения"));

В результате появится русский текст, а не квакозябрики

Share this post


Link to post
  • 0
DreamHarakiri
React разработчик

@DEST Ошибка:

error 076: syntax error in the expression, or invalid function call

строка

	server_textdrawn[2] = TextDrawCreate(53.000000, 147.000000, RusText, !"Основная информация"); // Основная информация

 

Share this post


Link to post
  • 0
DEST
Maintainer
server_textdrawn[2] = TextDrawCreate(53.000000, 147.000000, RusText("Основная информация")); // Основная информация

 

Share this post


Link to post
  • 0
DreamHarakiri
React разработчик

@DEST однако даже это не помогло, есть еще варианты?

 

Share this post


Link to post
  • 0
Человек-редиска
[YT] HOFFMAN

@Remmi_Feed Может,быть проблема в том что он действительно не функционирует на CRP,может быть будет работать на CRMP 0.3.7,я,точно н не могу утвердить,но попробуй протестить в CRMP или SAMP версиях,0.3.7,если не поможет,то как выше сказано установите русификатор.

Share this post


Link to post
  • 0
Guest
Новичок

@Maks_Badanov Зачем такие сложности? Если это обычно проблема самого SAMP, русификатор все решит

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Nimalin⁵²
      By Nimalin⁵²
      Всем привет. Я часто использую моды по типу: Adrenaline RP, Russia RP и подобный калл. И из этого говна по выкачке денег, я хотел сделать конфетку, но каждый раз падал лицом в грязь. Начинал я с организаций, так как по мне это самая важная часть на RP серверах. Я бывало хотел создать новую организацию, но не знал как. Полазив в Базе Данных, в моде, я не нашел, как же тут создать фракцию. Поэтому прошу помощи скиньте пожалуйста решение этой задачки.