OnPlayerConnect Error/Warning?
#2

pawn Код:
public OnPlayerConnect(playerid)
{
        new name[MAX_PLAYER_NAME], string[44];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "[SERVER]: %s has joined the server.",name);
        SendClientMessageToAll(0xFFFFFFFF, string);
    SendClientMessage(playerid, 0xFFFF00AA, "Welcome to ~~~~~~~~~~~~~~~~~~~~~~~~~.");
    SendClientMessage(playerid, 0xAA3333AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
    SendClientMessage(playerid, 0xAA3333AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...");
    SendClientMessage(playerid, 0xAFAFAFAA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
    GameTextForPlayer(playerid,"Welcome to ~~~~, By ~~~~",5000,1);
    return 1;
}
    SetPlayerTeamColor(playerid)
    {
        if (gTeam[playerid] == TEAM_ArmyRUS)
        {
        SetPlayerTeam(playerid,1);
        SetPlayerColor(playerid, TEAM_ArmyRUS_COLOR);
        }
        else if (gTeam[playerid] == TEAM_ArmyUSA)
        {
        SetPlayerTeam(playerid,2);
        SetPlayerColor(playerid, TEAM_ArmyUSA_COLOR);
        }
}
From the looks of this you've forgotten to add:

pawn Код:
return 1;
At the end of SetPlayerTeamColor.
Reply


Messages In This Thread
OnPlayerConnect Error/Warning? - by kamzaf - 08.05.2012, 21:30
Re: OnPlayerConnect Error/Warning? - by TheDominator - 08.05.2012, 21:39
Re: OnPlayerConnect Error/Warning? - by kamzaf - 08.05.2012, 21:44
Re: OnPlayerConnect Error/Warning? - by TheDominator - 08.05.2012, 22:06
Re: OnPlayerConnect Error/Warning? - by kamzaf - 08.05.2012, 22:17
Re: OnPlayerConnect Error/Warning? - by TheDominator - 08.05.2012, 22:19
Re: OnPlayerConnect Error/Warning? - by paulor - 09.05.2012, 01:16

Forum Jump:


Users browsing this thread: 2 Guest(s)