(POMOC) Teamovi

Započeo BeKa, Januar 11, 2011, 09:05:36 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Evo radio sam teamove po ovom tutorialu, http://forum.sa-mp.com/showthread.php?t=160810
I sad problem je u tome kada idem compile, izbaci mi ove errore...
C:\Users\BRANE\Desktop\skripta\gamemodes\Isus.pwn(557) : error 021: symbol already defined: "SetPlayerTeamFromClass"
C:\Users\BRANE\Desktop\skripta\gamemodes\Isus.pwn(569) : error 021: symbol already defined: "SetPlayerToTeamColour"

To znaci da sam ih vec jednom stavio u skriptu, al u tutorialu piše, pogledajte tut samo pls =)...
uglavnom one traže ovo..

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
    return 1;
}


public OnPlayerSpawn(playerid)
{
    SetPlayerToTeamColour(playerid);
    return 1;
}


Znači to stavim u ta dva callbacka, i jesam... pa onda kaže da stavim ovako...

SetPlayerTeamFromClass(playerid, classid)
{
    if(classid == 0)
    {
        gTeam[playerid] = GROVE_STREET;
    }
}

SetPlayerToTeamColour(playerid)
{
    if(gTeam[playerid] == GROVE_STREET)
    {
        SetPlayerColor(playerid,GROVE_STREET_COLOUR); //Green
    }
}


Isto tako i za drugi team, piše da to stavim SKROZ na DNO Skripte :S... pomoć?

C:\Users\BRANE\Desktop\skripta\gamemodes\Isus.pwn(557) : error 021: symbol already defined: "SetPlayerTeamFromClass"
C:\Users\BRANE\Desktop\skripta\gamemodes\Isus.pwn(569) : error 021: symbol already defined: "SetPlayerToTeamColour"


znaci da vec ti ovo postoi

proveri dali imas ovo duplo u skripti

public SetPlayerTeamFromClass
public SetPlayerToTeamColour
jos jednom stavi taj server u potpis i ban ces dobit!

Simbol SetPlayerTeamFromClass i SetPlayerToTeamColour je vec definiran ( ili simbol je definiran 2+ puta )

Idi CTRL+F i upisi  " SetPlayerTeamFromClass " i onda obrisi ga
Idi CTRL+F i upisi  " SetPlayerToTeamColour " i onda obrisi ga
Nece ti biti " SetPlayerTeamFromClass " ili " SetPlayerToTeamColour " nego

public SetPlayerTeamFromClass
public SetPlayerToTeamColour

te dve obrisi