Server runs but does not connect to it
#1

Hello,
sometimes becomes a running server that can connect to it. It is shot on video. Connecting the server and the player is in order. When it buged so there is not anyone to join. But to my VPS is ok to log in and manipulate it. I found however, that the CPU is 100%. I have a slot 200 SA-MP server and VPS dual-core (3.2 GHz). Always on the VPS ran without any problem at half load.
What is wrong in the script? Or in the sa-mp server? The problem is that I just did a lot of the script and it is very difficult to find, which is the wrong.

http://www.youtube.com/watch?v=UBPIE...ature=*********
Reply
#2

I found the error was in the script, according to the log again and again stir the function from. But after all I have to 200 repeat cycle, why is it repeated over and over?
When I tested the script to me it does not cause deadlock.
Code:
new string[512];
		for(new i;i<MAX_PLAYERS_EX;i++)
		{
			if(IsPlayerConnected(i))
			{
				if(Zamestnani[i] == POVOLANI_NOVINAR)
				{
				    new nadpis[24];
				    GetPVarString(i,"NovinyNadpis",nadpis,sizeof(nadpis));
					if(strlen(nadpis) > 0) format(string,sizeof(string),"%s\n%s - %s - %d$",string,Jmeno(i),nadpis,Taxa[i]);
				}
			}
		}
		if(strlen(string) < 1) return textdraw(playerid,"Nejsou vydane zadne noviny");
		else ShowPlayerDialog(playerid,62,DIALOG_STYLE_LIST,"Noviny",string,"OK","Nic
Such a form formats use functions in the mode frequently, but only in that the script has a problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)