help with a command fixing
#2

Quote:
Originally Posted by SwatOwner
Посмотреть сообщение
Here is the code
if(gPlayerAccount[playerid] == 1)
{
new string[128];
new PID, pName[MAX_PLAYER_NAME];// fuck, you dont have lots of newer shit defined
GetPlayerName(PID, pName, sizeof(pName));
format(string, sizeof(string), "%s has joined the server", PID);
SendClientMessageToAll(COLOR_GRAD2, string);


but when someone joins server it says has joined server not name please help
Why dont you use

Код:
public OnPlayerConnect(playerid)
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s has joined the server. Welcome!",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
Reply


Messages In This Thread
help with a command fixing - by SwatOwner - 10.07.2011, 05:03
Re: help with a command fixing - by HayZatic - 10.07.2011, 05:09
Re: help with a command fixing - by Kush - 10.07.2011, 05:20
Re: help with a command fixing - by Kush - 10.07.2011, 05:25

Forum Jump:


Users browsing this thread: 1 Guest(s)