Create faction(s)
#9

Quote:
Originally Posted by [TLV
ReVo_ ]
OnPlayerSpawn:
pawn Код:
if(Faction[playerid]==POLICE)
{
SetPlayerColor(playerid, COLORECC);
}
else if(Faction[playerid]==ECC)
{
ecc
}
in top of you script define all factions
exemple
pawn Код:
#define POLICE 1
Sorry for my english :S.
Get Errors
Код:
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(97) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(97) : error 036: empty statement
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(97) : error 029: invalid expression, assumed zero
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(97) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
OnPlayerSpawn:
Код:
public OnPlayerSpawn(playerid)
{
if(Faction[playerid];==POLICE)
{
SetPlayerColor(playerid, COLORECC);
}
else if(Faction[playerid]==ECC)
{
ecc
}
	return 1;
}
And:
Код:
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(101) : error 017: undefined symbol "ECC"
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(103) : error 017: undefined symbol "ecc"
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(105) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
Create faction(s) - by Alex_Capone - 24.06.2010, 17:06
Re: Create faction(s) - by Alex_Capone - 24.06.2010, 18:45
Re: Create faction(s) - by Kidel - 24.06.2010, 18:46
Re: Create faction(s) - by Alex_Capone - 24.06.2010, 18:53
Re: Create faction(s) - by ReVo_ - 24.06.2010, 18:54
Re: Create faction(s) - by Kidel - 24.06.2010, 18:54
Re: Create faction(s) - by Alex_Capone - 24.06.2010, 18:56
Re: Create faction(s) - by Kidel - 24.06.2010, 18:59
Re: Create faction(s) - by Alex_Capone - 24.06.2010, 19:05
Re: Create faction(s) - by ReVo_ - 24.06.2010, 19:07

Forum Jump:


Users browsing this thread: 1 Guest(s)