Why is this happening ?
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Most of the times, this warning is given if you return something and at the next line there is code.
This is another part of the code(the lines after the warning)
pawn Код:
if(GetPlayerWantedLevel(ID) >=3) //Warning line
    {
        format(string,sizeof(string),"[POLICE ACTION] Law Enforcement Officer %s(%d) has arrested %s(%d)",pName,playerid,aName,ID);
        SendClientMessageToAll(COLOR_ORANGE,string);
        SendClientMessage(playerid,COLOR_LIGHTBLUE,"You received 15,000$ and 2 score points for the arrest");
        GivePlayerMoney(playerid,15000);
        new rnd = random(sizeof(JailSpawnPoints));
        JailTime[ID] =180;
        SetPlayerInterior(ID,10);
        SetPlayerPos(ID,JailSpawnPoints[rnd][0],JailSpawnPoints[rnd][1],JailSpawnPoints[rnd][2]);
        SetPlayerFacingAngle(ID,JailSpawnPoints[rnd][3]);
        TogglePlayerControllable(ID,1);
        return 1;
    }
EDIT: I FIXEED IT. Thanks for your help once again Kwsta . Ελληνας ειμαι για να ξερεις .
Reply


Messages In This Thread
Why is this happening ? - by Johnson_Brooks - 15.05.2014, 19:35
Re: Why is this happening ? - by Konstantinos - 15.05.2014, 19:39
Re: Why is this happening ? - by Johnson_Brooks - 15.05.2014, 19:53

Forum Jump:


Users browsing this thread: 1 Guest(s)