18.04.2015, 07:51
Hey guys. I've got one more problem. Now its about factions / organizations.
So i made enum:
...And defined some teams:
And now i made this under @OnPlayerConnect:
And at the end i get these errors:
So i made enum:
PHP код:
enum pTeam
{
ORG_Ime,
ORG_Rank
};
new PlayerTeam[MAX_PLAYERS][pTeam];
PHP код:
/* Sekcija: Define ORG */
#define Team_Civil 0
#define ORG_Bolnica 1
#define ORG_PD 2
#define ORG_News 3
PHP код:
if(pTeam[playerid][ORG_Ime] != ORG_PD);
{
pTeam[playerid][ORG_Ime] = Team_Civil;
}
else if(pTeam[playerid][ORG_Ime] != ORG_Bolnica);
{
pTeam[playerid][ORG_Ime] = Team_Civil;
}
else if(pTeam[playerid][ORG_Ime] != ORG_News);
{
pTeam[playerid][ORG_Ime] = Team_Civil;
}
PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1343) : error 028: invalid subscript (not an array or too many subscripts): "pTeam"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1343) : warning 215: expression has no effect
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1343) : error 001: expected token: ";", but found "]"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1343) : error 029: invalid expression, assumed zero
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1343) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.