Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
dark_kynep

Перестал работать скрипт на сообщения.

Товарищи, выручайте!

После вчерашней ****ой обновы, перестало работать все...
Но самое главное, перестал работать скрипт на MOTD.

Он работает, но вместо текста, выдает рандомные слова, типа door1, item5 и т.д. все три предложения, пишет одинаковое слово.
Пробовал менять текст, пробовал менять функцию вывода текста, безполезно... результат один и тот же.
Причем всесто пробелов, в третьем сообщении, он тоже пишет тот же текст.
Помогите пожалуйста, советом или делом...

 

int TIME_Information_Repeat = 600000; //in ms (60 seconds = 60000)

ref TStringArray Messages = {"-= Welcome to [RU]DARK =-", "*** Join in Telegram - t.me/ru_dark_dayz ***", "   "};

void CustomInformation()
{
	//GetGame().GetWorld().GetPlayerList(m_Players);
	array<Man> players = new array<Man>;
	GetGame().GetPlayers( players );
	private int numbOfplayers = players.Count();
	
	if( numbOfplayers > 0 )
	{
	  // GetGame().ChatPlayer(0,Messages.GetRandomElement());
		foreach(Man player: players)
		{
			InfoMessages_SendPersonalMessage(Messages.Get(0), player);
			InfoMessages_SendPersonalMessage(Messages.Get(1), player);
			InfoMessages_SendPersonalMessage(Messages.Get(2), player);
		}
   }
}

void InfoMessages_SendPersonalMessage(string message, Man player) 
{
	if(( player ) && (message != ""))
	{
		Param1<string> m_GlobalMessage = new Param1<string>(message); 
		GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, m_GlobalMessage, true, player.GetIdentity()); 
	}
}



 

Edited by dark_kynep (see edit history)

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

В обшем, проблема решилась заменой массива, на 3 переменных string.

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.