Team script help
#1

I have these Errors:
Код:
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1753) : error 017: undefined symbol "SetPlayerToTeamColour"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
I'm scripting this:
Код:
public OnPlayerSpawn(playerid)
{

    GangZoneShowForPlayer(playerid, Zone, 0x1BE02896);
    GangZoneShowForPlayer(playerid, Zone1, 0x0099FF96);
    GangZoneShowForPlayer(playerid, Zone2, 0xFF040096);
    GangZoneShowForPlayer(playerid, Zone3, 0x633F8A96);

	SetPlayerArmour(playerid, 100.0);
    SetPlayerInterior(playerid, 0);
	SetPlayerHealth(playerid,99999);
    SetTimerEx("NoSpawnKill",15000,0,"i",playerid);
    SetPlayerToTeamColour(playerid);

	if(gTeam[playerid] == DUELERS)
    {
        SetPlayerColor(playerid,0x0099FF96); // Blue
    }
     if(gTeam[playerid] == eLEMONators)
    {
        SetPlayerColor(playerid,0x1BE02896); // Green
    }
     if(gTeam[playerid] == TheCerealKillers)
    {
        SetPlayerColor(playerid,0xFF040096); // red
    }
    else if(gTeam[playerid] == eLEMONators)
    {
        SetPlayerColor(playerid,0x633F8A96); //purple
    }
}
	return 1;
}
Thanks for Helping
Reply
#2

Remove
SetPlayerToTeamColour(playerid);

It seems unneeded.
Reply
#3

You shall delete the SetPlayerToTeamColourplayerid); that will help
Reply
#4

All team came with only 1 colour , i wanted that every team have different colour,
What should i do?

Please help
Reply
#5

Set the player color on spawn?
Reply
#6

Can you help me
fix my teams ?
Reply
#7

Well, first of all in Pawn we're writing everything in the American-English way, so color without the "U". Might be the reason why Pawno isn't picking it up. (It's very picky when it comes down to spelling ;P )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)