SA-MP Forums Archive
[Problem]"Connected. Joining the game..." - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Problem]"Connected. Joining the game..." (/showthread.php?tid=174102)



[Problem]"Connected. Joining the game..." - SpaZ (Ed) - 04.09.2010

I'm sorry for asking assistance here again but I can't figure out how to fix this problem
So, yesterday I finished my gamemode and when I was about to start testing it I realized that the gamemode wasn't loading up. I mean, it wasn't displaying the print it was supposed and prevented anyone from connecting to the server, but the server didn't shut down because the .amx was there. I've figured out how to solve that but now, when I connect to the server it displays the "Connected. Joining the game..." message and nothing happens...

Help would be much appreciated. Tell me if you need any part of the script.


Re: [Problem]"Connected. Joining the game..." - ScottCFR - 04.09.2010

Post your OnPlayerConnect code?


Re: [Problem]"Connected. Joining the game..." - SpaZ (Ed) - 04.09.2010

It's a basic account system with a GUI.
pawn Код:
public OnPlayerConnect(playerid)
{
  Logged[playerid] = 0;
  new pName[MAX_PLAYER_NAME], file[128];
  GetPlayerName(playerid, pName, sizeof(pName));
  format(file, sizeof(file), "/Users/%s.ini", pName);
  if(!fexist(file))
  {
  SendClientMessage(playerid, COLOR_RED, "[SYSTEM]You do not have an account. Please register to create one.");
  ShowPlayerDialog(playerid, DIALOG_REGISTER, 1, "Please enter a password", "You must register to continue", "Register", "Cancel");
  }

  else if(fexist(file))
  {
  SendClientMessage(playerid, COLOR_YELLOW, "[SYSTEM]This name has been registered. Please login or choose another name!");
  ShowPlayerDialog(playerid, DIALOG_LOGIN, 1, "Please enter your password", "You must log in to continue", "Log in", "Cancel");
  }
}



Re: [Problem]"Connected. Joining the game..." - ScottCFR - 04.09.2010

It needs to return 1. Before the last } put
Код:
return 1;



Re: [Problem]"Connected. Joining the game..." - SpaZ (Ed) - 04.09.2010

Still not working


Re: [Problem]"Connected. Joining the game..." - ScottCFR - 04.09.2010

I don't see any problem with your code. I know it sucks, but a re-write may be needed. I've had to do it before, besides that, you may be able to clean your code up on a re-write.


Re: [Problem]"Connected. Joining the game..." - SpaZ (Ed) - 04.09.2010

Could this have something to do with it?
Код:
D:\SAMP Server\SA-MP Server\gamemodes\cstdm.pwn(805) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
It's a function from dudb or dutils which I'm not using in my script... Oh and my code has only 804 lines.


Re: [Problem]"Connected. Joining the game..." - Ironboy500[TW] - 04.09.2010

No.

Add this to top of your script.
Код:
#pragma unused ret_memcpy
This will fix your warning.


Re: [Problem]"Connected. Joining the game..." - SpaZ (Ed) - 05.09.2010

So, is a re-write the only solution to this?


Re: [Problem]"Connected. Joining the game..." - WillyP - 05.09.2010

Quote:
Originally Posted by SpaZ (Ed)
Посмотреть сообщение
So, is a re-write the only solution to this?
probablies