Team script help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Team script help (
/showthread.php?tid=426023)
Team script help -
Branzy - 27.03.2013
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
Re: Team script help -
Jeffry - 27.03.2013
Remove
SetPlayerToTeamColour(playerid);
It seems unneeded.
Re: Team script help -
xXAndreXx - 27.03.2013
You shall delete the SetPlayerToTeamColourplayerid); that will help
Re: Team script help -
Branzy - 27.03.2013
All team came with only 1 colour , i wanted that every team have different colour,
What should i do?
Please help
Re: Team script help -
gtakillerIV - 27.03.2013
Set the player color on spawn?
Re: Team script help -
Branzy - 27.03.2013
Can you help me
fix my teams ?
Re: Team script help -
judothijs - 27.03.2013
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 )