15.11.2009, 18:40
Ok guys im trying to make a cop get colored name when they go on duty and a different one for FBI,but when i tried to compile,the PWN Compiler crashed.It says "Pawn Compiler library have encountered an error and needs to close" I dont what did wrong? HELP ME
The lines :
HELP !
The lines :
Код:
if(OnDuty[playerid]==0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
format(string, sizeof(string), "* Officer %s took a Badge and a Gun from his locker.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 3, 0);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,COP_DUTY_COLOR);
OnDuty[playerid] = 1;
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
format(string, sizeof(string), "* Agent %s took a Badge and a Gun from his locker.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 3, 0);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,FBI_DUTY_COLOR);
OnDuty[playerid] = 1;

