Multiple help thread
#4

ill do the first 1

Код:
//Public OnPlayerConnect.
public OnPlayerConnect(playerid)
{
         new pname[MAX_PLAYER_NAME], string[63 + MAX_PLAYER_NAME];
         new ID; <<<<<<<<<<< This variable is not needed
        // Server Related shit.
        GetPlayerName(playerid, pname, sizeof(pname));
        format(string, sizeof(string), "%s(%d) has joined the server.", pname, ID); // The variable ID should be playerid
        SendClientMessageToAll(COLOR_CYAN, string);
        return 1;
}
Reply


Messages In This Thread
Multiple help thread - by _Khaled_ - 02.09.2012, 20:05
Re: Multiple help thread - by Misiur - 02.09.2012, 20:16
Re: Multiple help thread - by _Khaled_ - 02.09.2012, 20:25
Re: Multiple help thread - by sampreader - 02.09.2012, 20:28
Re: Multiple help thread - by _Khaled_ - 02.09.2012, 20:40
Re: Multiple help thread - by _Khaled_ - 02.09.2012, 21:31
Re: Multiple help thread - by _Khaled_ - 02.09.2012, 21:55
Re: Multiple help thread - by Akira297 - 02.09.2012, 21:57
Re: Multiple help thread - by _Khaled_ - 02.09.2012, 22:08
Re: Multiple help thread - by _Khaled_ - 02.09.2012, 22:49

Forum Jump:


Users browsing this thread: 2 Guest(s)