PD Problem
#2

pawn Код:
if (CopSkin == 280 || CopSkin == 281 || CopSkin == 282 || CopSkin == 283)
            {
                format(string,sizeof(string),"This Vehicle Is Owned By Fort Carson Sheriff Dept", string);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                return 1;
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_ERROR, "ERROR: You are not a Cop.");
                return 1;
            }
            return 1;
To this...

pawn Код:
if (CopSkin == 280 || CopSkin == 281 || CopSkin == 282 || CopSkin == 283)
            {
                format(string,sizeof(string),"This Vehicle Is Owned By Fort Carson Sheriff Dept", string);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                return 1;
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_ERROR, "ERROR: You are not a Cop.");
                return 1;
            }
I don't think you need to include the "return 1;" at the end of that if statement.
Reply


Messages In This Thread
PD Problem - by Luis- - 01.10.2010, 23:14
Re: PD Problem - by Scenario - 01.10.2010, 23:18
Re: PD Problem - by Nero_3D - 01.10.2010, 23:20
Re: PD Problem - by Memoryz - 01.10.2010, 23:26

Forum Jump:


Users browsing this thread: 1 Guest(s)