Gang crew error -
Bulgaria - 30.03.2016
Any Ideas
PHP код:
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(274) : error 017: undefined symbol "TEAM_ARMY"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(28 : error 017: undefined symbol "TEAM_ARMY"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(299) : error 017: undefined symbol "COLOR_GREY"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Re: Gang crew error -
Bulgaria - 30.03.2016
[php]public SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_ARMY) {
SetPlayerColor(playerid,COLOR_GOLD);
}
}[php]
[php]public OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid;
switch (classid) {
case 0,1,2,3,4,5,6,7,8,9:
{
gTeam[playerid] = TEAM_ARMY;
GameTextForPlayer(playerid, "~y~~h~~h~The Army", 1000, 6);
}
}
SetPlayerPos(playerid, 2524.2695,-1696.2926,18.2204);
SetPlayerFacingAngle( playerid, 2.3616 );
SetPlayerCameraPos(playerid, 2523.7749,-1692.6855,18.9011);
SetPlayerCameraLookAt(playerid, 2524.2695,-1696.2926,18.2204);
return 1;
}[php]
Re: Gang crew error -
Bulgaria - 30.03.2016
[PHP]public SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_ARMY) {
SetPlayerColor(playerid,COLOR_GOLD);
}
}[PHP]
[PHP]public OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid;
switch (classid) {
case 0,1,2,3,4,5,6,7,8,9:
{
gTeam[playerid] = TEAM_ARMY;
GameTextForPlayer(playerid, "~y~~h~~h~The Army", 1000, 6);
}
}
SetPlayerPos(playerid, 2524.2695,-1696.2926,18.2204);
SetPlayerFacingAngle( playerid, 2.3616 );
SetPlayerCameraPos(playerid, 2523.7749,-1692.6855,18.9011);
SetPlayerCameraLookAt(playerid, 2524.2695,-1696.2926,18.2204);
return 1;
}[PHP]
Re: Gang crew error -
introzen - 30.03.2016
Quote:
Originally Posted by Bulgaria
can you fix this two [CODE]C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(274) : error 017: undefined symbol "TEAM_ARMY"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(28 : error 017: undefined symbol "TEAM_ARMY"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(299) : error 017: undefined symbol "COLOR_GREY"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
[CODE]
|
You have not defined TEAM_ARMY or COLOR_GREY.
For a quick solution, put this on the top of your script:
pawn Код:
#define COLOR_GREY 0xABABABFF
#define TEAM_ARMY 1337
However I do really suggest you check how many teams there are at the moment, then define TEAM_ARMY to the next available. Also, in the functions you've wrote here, it seems you're using COLOR_GOLD instead of _GREY.
Re: Gang crew error -
Bulgaria - 30.03.2016
Ok Thanks