Welcome message crash
#4

Quote:
Originally Posted by [mad
MLK (sampx-hosting.co.cc) ]
anyone know why my server crashes after the "Remeber the server is still in development!."

Код:
public OnPlayerConnect(playerid)
{
	new pname[24], string[128];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(string, sizeof(string), "Welcome to Everything World %s!", pname);
 	SendClientMessage(playerid,COLOR_RED, string);
 	SendClientMessage(playerid,COLOR_BLUE, "Remeber the server is still in development!.");
 	new pnamee[24], stringg[128];
  GetPlayerName(playerid, pnamee, sizeof(pnamee));
  format(stringg, sizeof(stringg), "%s!", pnamee);
 	SendClientMessage(playerid,COLOR_YELLOW, "[Server] %s has joined the server, Welcome %s !");
	return 1;
}
Код:
public OnPlayerConnect(playerid)
{

  	new pnamee[24], stringg[128];
  GetPlayerName(playerid, pnamee, sizeof(pnamee));
  format(stringg, sizeof(stringg), "%s!", pnamee);
  	SendClientMessage(playerid,COLOR_YELLOW, "[Server] %s has joined the server, Welcome %s !");
	return 1;
}
It could be that part.

Try this (From Wiki)


Код:
  new pName[MAX_PLAYER_NAME];
  new string2[48];
  GetPlayerName(playerid, pName, sizeof(pName));
  format(string2, sizeof(string2), "%s has joined the server, Welcome %s", pName);
  SendClientMessageToAll(0xAAAAAAAA, string);
Reply


Messages In This Thread
Welcome message crash - by [mad]MLK - 26.08.2009, 22:37
Re: Welcome message crash - by MenaceX^ - 26.08.2009, 22:41
Re: Welcome message crash - by [mad]MLK - 26.08.2009, 22:42
Re: Welcome message crash - by NEW_IE - 26.08.2009, 22:43
Re: Welcome message crash - by MenaceX^ - 26.08.2009, 22:53

Forum Jump:


Users browsing this thread: 4 Guest(s)