if(strcmp(cmd, "/pduty", true) == 0)
{
if(PlayerToPoint(3, playerid,303.8969,-141.7608,1004.0625);
}
if(PlayerInfo[playerid][pSmember] != 11)
{
SendClientMessage(playerid, COLOR_GRAD1, "Police Officers only!");
return 1;
}
PlayerInfo[playerid][pTeam] = level;
SendTeamMessage(2, TEAM_BLUE_COLOR, "Officer %s has gone on duty", sendername);
return 1;
}
if(strcmp(cmd, "/pduty", true) == 0)
{
if(PlayerToPoint(3, playerid,303.8969,-141.7608,1004.0625);
{
if(PlayerInfo[playerid][pSmember] != 11) return SendClientMessage(playerid, COLOR_GRAD1, "Police Officers only!");
PlayerInfo[playerid][pTeam] = level;
SendTeamMessage(2, TEAM_BLUE_COLOR, "Officer %s has gone on duty", sendername);
return 1;
}
}
if(strcmp(cmd, "/pduty", true) == 0)
{
if(PlayerToPoint(3, playerid,303.8969,-141.7608,1004.0625)
{
if(PlayerInfo[playerid][pSmember] != 11) return SendClientMessage(playerid, COLOR_GRAD1, "Police Officers only!");
PlayerInfo[playerid][pTeam] = level;
SendTeamMessage(2, TEAM_BLUE_COLOR, "Officer %s has gone on duty", sendername);
}
return 1;
}
|
Originally Posted by Seif_
Learn to indent your code and this will never happen.
|