Question

Ребят, такая проблема у меня был обычный логотип на текстдраве, я сделал psd логотип, импортировался его в txd, а далее сделал уже сам текстдрав. После этого всего, я вырезал старый логотип и вставил новый, после чего запустил сервер и зашел на него, логотип появился, а окна регистрации\авторизации нет. Что делать? 

 

P.S. Кидаю Server log, может понадобиться

 

[17:52:53] [debug] Run time error 4: "Array index out of bounds"
[17:52:53] [debug]  Attempted to read/write array element at index 2 in array of size 2
[17:52:53] [debug] AMX backtrace:
[17:52:53] [debug] #0 0095d02c in public WC_OnPlayerRequestClass (0, 0) in unrp.amx
[17:52:53] [debug] #1 000150a8 in public OnPlayerRequestClass (0, 0) in unrp.amx
[17:52:56] Заходит
[17:52:56] [debug] Run time error 4: "Array index out of bounds"
[17:52:56] [debug]  Attempted to read/write array element at index 2 in array of size 2
[17:52:56] [debug] AMX backtrace:
[17:52:56] [debug] #0 0095d02c in public WC_OnPlayerRequestClass (0, 1) in unrp.amx
[17:52:56] [debug] #1 000150a8 in public OnPlayerRequestClass (0, 1) in unrp.amx
[17:52:57] Заходит
[17:52:57] [debug] Run time error 4: "Array index out of bounds"
[17:52:57] [debug]  Attempted to read/write array element at index 2 in array of size 2
[17:52:57] [debug] AMX backtrace:
[17:52:57] [debug] #0 0095d02c in public WC_OnPlayerRequestClass (0, 2) in unrp.amx
[17:52:57] [debug] #1 000150a8 in public OnPlayerRequestClass (0, 2) in unrp.amx
[17:52:57] Заходит
[17:52:57] [debug] Run time error 4: "Array index out of bounds"
[17:52:57] [debug]  Attempted to read/write array element at index 2 in array of size 2
[17:52:57] [debug] AMX backtrace:
[17:52:57] [debug] #0 0095d02c in public WC_OnPlayerRequestClass (0, 3) in unrp.amx
[17:52:57] [debug] #1 000150a8 in public OnPlayerRequestClass (0, 3) in unrp.amx
[17:52:57] Заходит
[17:52:57] [debug] Run time error 4: "Array index out of bounds"
[17:52:57] [debug]  Attempted to read/write array element at index 2 in array of size 2
[17:52:57] [debug] AMX backtrace:
[17:52:57] [debug] #0 0095d02c in public WC_OnPlayerRequestClass (0, 4) in unrp.amx
[17:52:57] [debug] #1 000150a8 in public OnPlayerRequestClass (0, 4) in unrp.amx

 

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

@MichaiLS А покажите код логотипа, как и где он вставлен.

 

Share this post


Link to post
Share on other sites
  • 0
12 минут назад, Nekit_Krut18 сказал:

@MichaiLS А покажите код логотипа, как и где он вставлен.

 

код: 

	logo_TD[0] = TextDrawCreate(265.0000, 155.0000, "logo6Logo"); // ?????
	TextDrawTextSize(logo_TD[0], 90.0000, 90.0000);
	TextDrawAlignment(logo_TD[0], 1);
	TextDrawColor(logo_TD[0], -1);
	TextDrawBackgroundColor(logo_TD[0], 255);
	TextDrawFont(logo_TD[0], 4);
	TextDrawSetProportional(logo_TD[0], 0);
	TextDrawSetShadow(logo_TD[0], 0);

	logo_TD[1] = TextDrawCreate(478.6665, -63.6074, "logo:logo"); // ?????
	TextDrawTextSize(logo_TD[1], 202.0000, 227.0000);
	TextDrawAlignment(logo_TD[1], 1);
	TextDrawColor(logo_TD[1], -1);
	TextDrawBackgroundColor(logo_TD[1], 255);
	TextDrawFont(logo_TD[1], 4);
	TextDrawSetProportional(logo_TD[1], 0);
	TextDrawSetShadow(logo_TD[1], 0);

 

вставлен в OnPlayerRequestClass

   		for(new i = 0;i <= 2; i++) TextDrawShowForPlayer(playerid,logo_TD[i]);

вставлен в OnPlayerDisconnect

   	for(new i = 0;i <= 1; i++) TextDrawHideForPlayer(playerid,logo_TD[i]);

 

Share this post


Link to post
Share on other sites
  • 0

в OnPlayerRequestClass, в цикле замените число проходов, тобишь с 2 на 1.

for(new i = 0;i <= 1; i++) TextDrawShowForPlayer(playerid,logo_TD[i]);

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Kutuzov
      By Kutuzov
      Всем привет, хотелось бы спросить у тех, кто разбирается в PluginSDK.
      Какие есть источники, руководства, документации о PluginSDK?
      Я пока что ничего нормального не нахожу.
      Заранее спасибо