IRC Problem
#1

Код:
public OnPlayerConnect(playerid)
{
	new joinMsg[128], name[MAX_PLAYER_NAME], Ajoin[128];
	GetPlayerName(playerid, name, sizeof(name));
	format(joinMsg, sizeof(joinMsg), "50JOIN: %s (%d) Has Joined Global Trucking Server.", name, playerid);
	IRC_GroupSay(groupID, IRC_CHANNEL, joinMsg);
	IRC_GroupSay(groupID, ECHO_CHANNEL, joinMsg);
	new giveplayerid, ip[16];
	GetPlayerIp(giveplayerid, ip, sizeof(ip));
	format(Ajoin, sizeof(Ajoin), "50JOIN: %s (%d) Has Joined Global Trucking Server.- (IP): %s", name, playerid, ip);
	IRC_GroupSay(groupID, ADMIN_CHANNEL, Ajoin);
	return 1;
}
The Problem is to i don't see whene someone connect to the server i just see to he spawn or lefted the server!

Pliss Help Me!
Reply
#2

I'm not sure if this might be the solution, but I don't think color 50 even exists..
http://www.ircbeginner.com/ircinfo/colors.html.
Other than that, can you show me OnPlayerSpawn where you sent the spawn messages?
Reply
#3

Код:
public OnPlayerSpawn(playerid)
{
	new SpawnMsg[128], name[MAX_PLAYER_NAME], string[128], zone[MAX_ZONE_NAME];
	GetPlayerName(playerid, name, sizeof(name));
	format(SpawnMsg, sizeof(SpawnMsg), "5SPAWN: %s (%d) Has Spawned.", name, playerid);
	IRC_GroupSay(groupID, IRC_CHANNEL, SpawnMsg);
	GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
	format(string, sizeof(string), "5 SPAWN: %s (%d) Has Spawned. - Location: %s", name, playerid, zone);
	IRC_GroupSay(groupID, ADMIN_CHANNEL, string);
	return 1;
}
Reply
#4

As you can see above, you're using color 5 - brown, while OnPlayerConnect, you're using an invalid color. (50)
Other than that, they look similar and should work.
Reply
#5

i fixed the color but it is not working still! :P
Reply
#6

*Wrong post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)