Stuck on "Connected. Joining the game..."
#1

Delete this thread.
Reply
#2

I have tried three different hosts now, two different Linux VPSs and Volt Host. All three doesn't work, I get the same thing. So this means there's something wrong with my script that makes this wrong. What can it be?
Reply
#3

Show us that 'payday' code
Reply
#4

It is a loop in your script i had this before or if you're sure that nothing is wrong with your scripts it is a BOT ATTACK it does that 2
Reply
#5

Here's everything related to 'payday' in my script:

Code:
public OnGameModeInit()
{
     SetTimer_("IsPayday", 500, 1000, -1);
}
Code:
forward IsPayday();
public IsPayday()
{
	new hour,mxn,sec;
	gettime(hour, mxn, sec);
	if(sec == 00 && mxn == 00)
	{
		print("Payday");
	    foreach(new i : Player)
	    {
	        if(Logged[i] && cInfo[i][cFirstLogin] <= 0 && Tutorial[i] <= 0) Call_Payday(i);
	    }
	}
	return 1;
}
Code:
stock Call_Payday(playerid)
{
	new rentprice = hInfo[cInfo[playerid][cRenting]][RentPrice];
	new Float:calculateSavings = cInfo[playerid][cSavings]*1.005;
	new calculatedSavings = floatround(calculateSavings, floatround_round);
	new Float:calculateBank = cInfo[playerid][cBank]*1.002;
	new calculatedBank = floatround(calculateBank, floatround_round);
	new calculatePaycheck;
	if(cInfo[playerid][cFaction] > 0) calculatePaycheck = (cInfo[playerid][cRank] * 250) + RandomEx(1500, 1750);
	else calculatePaycheck = RandomEx(1000, 1100) + cInfo[playerid][cPaycheck];
	CPF(playerid, 0x33AA33FF, "_________ PAYDAY INCOME _________");
	CPF(playerid, COLOR_FADE1, "Interest Gained: 0.2");
	if(cInfo[playerid][cSavings] > 0) CPF(playerid, COLOR_FADE1, "Savings Gained: 0.5");
	CPF(playerid, COLOR_FADE1, "Paycheck: $%d", calculatePaycheck);
	if(cInfo[playerid][cRenting] > 0 && cInfo[playerid][cBank] >= rentprice) CPF(playerid, COLOR_RED, "Rent: -$%d", rentprice);
	else if(cInfo[playerid][cRenting] > 0 && cInfo[playerid][cBank] < rentprice) cInfo[playerid][cRenting] = 0, CPF(playerid, COLOR_RED, "You have been evicted from your rented house due to lack of payment.");
	CPF(playerid, COLOR_FADE1, "------------------------");
	CPF(playerid, COLOR_FADE1, "Old Balance: $%d", cInfo[playerid][cBank]);
	CPF(playerid, COLOR_FADE1, "New Balance: $%d", calculatedBank + calculatePaycheck);
	CPF(playerid, COLOR_FADE1, "------------------------");
	if(cInfo[playerid][cSavings] > 0)
	{
		CPF(playerid, COLOR_FADE1, "Old Savings Balance: $%d", cInfo[playerid][cSavings]);
		CPF(playerid, COLOR_FADE1, "New Savings Balance: $%d", calculatedSavings);
	}
	format(gString, sizeof(gString), "~w~Paycheck~n~~g~+$%d", calculatePaycheck);
	GameTextForPlayer(playerid, gString, 3200, 1);
	if(cInfo[playerid][cRenting] > 0 && cInfo[playerid][cBank] >= rentprice) cInfo[playerid][cBank] = calculatedBank + calculatePaycheck - rentprice;
	else cInfo[playerid][cBank] = calculatedBank + calculatePaycheck;
	if(cInfo[playerid][cSavings] >= 20000000) cInfo[playerid][cSavings] = 20000000;
	else if(cInfo[playerid][cSavings] > 0) cInfo[playerid][cSavings] = calculatedSavings;
	new nxtlevel = cInfo[playerid][cLevel]+1;
	new expamount = nxtlevel*4;
	cInfo[playerid][cEXP] += 1;
	if(cInfo[playerid][cEXP] >= expamount)
	{
	    cInfo[playerid][cLevel] += 1;
	    cInfo[playerid][cEXP] = 0;
	    CPF(playerid, -1, "Level up! You are now level %d.", cInfo[playerid][cLevel]);
	}
	if(cInfo[playerid][cJob] > 0)
	    cInfo[playerid][cJobHours] += 1;
	    
	cInfo[playerid][cTotalHours] += 1;
	cInfo[playerid][cPaycheck] = 0;
	return 1;
}
I also forgot to mention, my account is still online in-game, I logged on yesterday and this happened, and I didn't restart the server after that. I'll let it be like that (I won't restart the server) until we solve this.
http://i.imgur.com/BK6KLBM.png
Reply
#6

Found out it was my mysql_ping(0) running all the time, which overloaded the server. It's been solved now.
Thank you a bunch to everyone who helped me, though!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)