My server
#1

Oay I have a server, Sometimes, when Someone loggs off, and then logs in the screen is black, even if they relog its still black, anyone canhelp?
Reply
#2

Can you please be more specific? Logs off as in quitting the server then joining again? Does it happen after they use a certain /login command or dialog whatsoever?
Reply
#3

Okay, Lets Just Say Im playin' my server one day, then I log out and after a while, I cant play, I can login, O
More Specific: Launching Samp to play my server>On the Server(COnnected)> SHows Up Login Dialog> I Log In> Screen Goes Black> I try Relog> Still black> The only way I fix is to Delete my account Ini in the actual CP
Reply
#4

Seems like textdraws to me?
Reply
#5

Quote:

Seems Like Textdraws to me?

Could ya gimmie a filterscript to fix this ? pleeeeaseee
Reply
#6

It's in your script whatever is causing this black screen perhaps a black textdraw gets shown each time a player login or something similar look through your gamemode.
Reply
#7

You know the code for a black textdraw? so i can
CRTL+F
Reply
#8

We actually would not know as we don't have the codes. Does your server use textdraws to login? Also, is there a command to login manually? If so, then Comment out the textdraws (if you see any) and then try to login and report back if it has been solved.

Incase you don't know how to comment, here's an example:

// - this is good to comment 1 line

/*
- these are useful to comment out a huge code from the top to bottom. When you use the first one (/*), your code will turn brown or similar and then you will need to add the last one under where the code ends (*/) and it will return white.
*/

E.g.

Uncommented:

Код:
new Text:LTextdraw0;
new Text:LTextdraw1;

	LTextdraw0 = TextDrawCreate(198.184463, 112.583320, "EXAMPLE");
	TextDrawLetterSize(LTextdraw0, 1.086248, 3.192497);
	TextDrawAlignment(LTextdraw0, 1);
	TextDrawColor(LTextdraw0, -16776961);
	TextDrawSetShadow(LTextdraw0, -2);
	TextDrawSetOutline(LTextdraw0, 0);
	TextDrawBackgroundColor(LTextdraw0, 255);
	TextDrawFont(LTextdraw0, 1);
	TextDrawSetProportional(LTextdraw0, 1);

	LTextdraw1 = TextDrawCreate(256.281097, 151.083297, "EXAMPLE");
	TextDrawLetterSize(LTextdraw1, 0.449999, 1.600000);
	TextDrawAlignment(LTextdraw1, 1);
	TextDrawColor(LTextdraw1, 65535);
	TextDrawSetShadow(LTextdraw1, 0);
	TextDrawSetOutline(LTextdraw1, 1);
	TextDrawBackgroundColor(LTextdraw1, 255);
	TextDrawFont(LTextdraw1, 1);
	TextDrawSetProportional(LTextdraw1, 1);

forward ShowLTextdraws(playerid);
public ShowLTextdraws(playerid)
{
	TextDrawShowForPlayer(playerid, LTextdraw0);
        TextDrawShowForPlayer(playerid, LTextdraw1);
	return 1;
}
Commented:

Код:
//new Text:LTextdraw0; i can do // or /* */ but I'm only commenting two lines here.
//new Text:LTextdraw1;

/* For a huge code we use this of course.
	LTextdraw0 = TextDrawCreate(198.184463, 112.583320, "EXAMPLE");
	TextDrawLetterSize(LTextdraw0, 1.086248, 3.192497);
	TextDrawAlignment(LTextdraw0, 1);
	TextDrawColor(LTextdraw0, -16776961);
	TextDrawSetShadow(LTextdraw0, -2);
	TextDrawSetOutline(LTextdraw0, 0);
	TextDrawBackgroundColor(LTextdraw0, 255);
	TextDrawFont(LTextdraw0, 1);
	TextDrawSetProportional(LTextdraw0, 1);

	LTextdraw1 = TextDrawCreate(256.281097, 151.083297, "EXAMPLE");
	TextDrawLetterSize(LTextdraw1, 0.449999, 1.600000);
	TextDrawAlignment(LTextdraw1, 1);
	TextDrawColor(LTextdraw1, 65535);
	TextDrawSetShadow(LTextdraw1, 0);
	TextDrawSetOutline(LTextdraw1, 1);
	TextDrawBackgroundColor(LTextdraw1, 255);
	TextDrawFont(LTextdraw1, 1);
	TextDrawSetProportional(LTextdraw1, 1);
*/ and this to end the comment.

/* to comment this part i just add this and the end part.
forward ShowLTextdraws(playerid);
public ShowLTextdraws(playerid)
{
	TextDrawShowForPlayer(playerid, LTextdraw0);
        TextDrawShowForPlayer(playerid, LTextdraw1);
	return 1;
}
*/ and we end it again here.
I hope you know understand how to comment now, it is useful for testing and commenting out pieces of codes that are malfunctioning or for further use in the future.

So try to comment out any textdraws or if that does not work, then try to comment your login/register system out and if it works after that, then post the code or try to read the code yourself to find the problem.


Hope this helps!
Reply
#9

Could also be that you are at a place, where the surroundings are black, e.g. -999999 z level.
When this happens, don't login, but check your dini file, is there something weird in there? e.g. position?
Reply
#10

Quote:
Originally Posted by Strawhats
Посмотреть сообщение
Could also be that you are at a place, where the surroundings are black, e.g. -999999 z level.
When this happens, don't login, but check your dini file, is there something weird in there? e.g. position?
Hmm, you do have a point and i did not think of that. Either it's what he's saying or check under (SetPlayerPos) to where it's sending you and check the virtual world and the interior. That is, if you have a single method of spawning, but if you have a house system or whatsoever, then it comes on when you login and it authenticates you, that's a whole different story then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)