Gang crew error
#1

Any Ideas
PHP код:
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(274) : error 017undefined symbol "TEAM_ARMY"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(28 error 017undefined symbol "TEAM_ARMY"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(299) : error 017undefined symbol "COLOR_GREY"
Pawn compiler 3.2.3664    Copyright (c1997-2006ITB CompuPhase
3 Errors

Reply
#2

[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]
Reply
#3

[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]
Reply
#4

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.
Reply
#5

Ok Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)