Wtf is this ?
#9

uf nice u help me to lsoe some errors just 18 errors more and we done

#include <a_samp>
#include <core>
#include <a_vehicles>


#define TEAM_COP
#define TEAM_COP_COLOR 0x0000BBAA
#define TEAM_FBI
#define TEAM_FBI_COLOR 0x660000AA
#define TEAM_MEDIC
#define TEAM_MEDIC_COLOR 0x0000BBAA
#define TEAM_AIRFORCE
#define TEAM_AIRFORCE_COLOR 0x24FF0AB9
#define TEAM_TAXI
#define TEAM_TAXI_COLOR 0xFFFF00AA

new gTeam[MAX_PLAYERS];

SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 28
{
gTeam[playerid] = TEAM_COP; --- line 23
}
else if (classid == 283)
{
gTeam[playerid] = TEAM_COP; --- line 27
}
else if (classid == 283)
{
gTeam[playerid] = TEAM_COP; --- line 31
}
else if (classid == 274)
{
gTeam[playerid] = TEAM_MEDIC; --- line 35
}
else if (classid == 275)
{
gTeam[playerid] = TEAM_MEDIC; --- line 39
}
else if (classid == 276)
{
gTeam[playerid] = TEAM_MEDIC; --- line 43
}
else if (classid == 163)
{
gTeam[playerid] = TEAM_FBI; --- line 47
}
else if (classid == 164)
{
gTeam[playerid] = TEAM_FBI; --- line 51
}
else if (classid == 165)
{
gTeam[playerid] = TEAM_FBI; --- line 55
}
else if (classid == 166)
{
gTeam[playerid] = TEAM_FBI; --- line 59
}
else if (classid == 121)
{
gTeam[playerid] = TEAM_AIRFORCE; --- line 63
}
else if (classid == 179)
{
gTeam[playerid] = TEAM_AIRFORCE; --- line 67
}
else if (classid == 55)
{
gTeam[playerid] = TEAM_TAXI; --- line 71
}
}

SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_COP) --- line 77
{
SetPlayerColor(playerid, TEAM_COP_COLOR);
}
else if (gTeam[playerid] == TEAM_MEDIC) --- line 81
{
SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
}
else if (gTeam[playerid] == TEAM_MEDIC) --- line 85
{
SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
}
else if (gTeam[playerid] == TEAM_AIRFORCE) --- line 89
{
SetPlayerColor(playerid, TEAM_AIRFORCE_COLOR);
}
else if (gTeam[playerid] == TEAM_TAXI) --- line 93
{
SetPlayerColor(playerid, TEAM_TAXI_COLOR);
}

C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(23) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(27) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(31) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(35) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(39) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(43) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(47) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(51) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(55) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(59) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(63) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(67) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(71) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(77) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(81) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(85) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(89) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\lo lek2.pwn(93) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


18 Errors.


i write u lines now u can help ? please
Reply


Messages In This Thread
Wtf is this ? - by Geekzor - 10.06.2009, 21:57
Re: Wtf is this ? - by Correlli - 10.06.2009, 21:59
Re: Wtf is this ? - by gpclan - 10.06.2009, 22:41
Re: Wtf is this ? - by MrPanz - 10.06.2009, 22:43
Re: Wtf is this ? - by efeX - 10.06.2009, 22:52
Re: Wtf is this ? - by Joe Staff - 11.06.2009, 00:04
Re: Wtf is this ? - by Geekzor - 11.06.2009, 12:40
Re: Wtf is this ? - by Think - 11.06.2009, 12:57
Re: Wtf is this ? - by Geekzor - 11.06.2009, 13:10
Re: Wtf is this ? - by Correlli - 11.06.2009, 15:56

Forum Jump:


Users browsing this thread: 3 Guest(s)