What's wrong?
#5

OK, thank you.. And what's wrong with this code?

pawn Код:
if (PRESSED(KEY_ACTION))
    {
        if (iClass[playerid] != ClassPolice || iCopStop[playerid] + 3000 > GetTickCount()) return true;
        new Float: fX, Float: fY, Float: fZ;
        GetPlayerPos(playerid, fX, fY, fZ);
        foreach (new i: Player)
        {
            if (IsPlayerInRangeOfPoint(i, 5, fX, fY, fZ))
            {
                if (GetPlayerWantedLevel(i) > 0)
                {
                    GameTextForPlayer(i, "~b~POLICIJA:~n~~b~PRASOME SUSTOTI, ARBA BUS IMTASI KITU VEIKSMU!", 3000, 4);
                    iCopStop[playerid] = GetTickCount();
                }
                else ShowInfoBox(playerid, "~w~Sis zaidлjas ~g~nera ~w~ieskomas!");
            }
            else ShowInfoBox(playerid, "~w~Salia jusu ~r~nera ~w~ieskomu zaideju!");
        }
    }
When I am near wanted player, it says that there isnt wanted players near me.
Reply


Messages In This Thread
What's wrong? - by BaubaS - 15.02.2012, 22:06
Re: What's wrong? - by N0FeaR - 15.02.2012, 22:19
Re: What's wrong? - by BaubaS - 16.02.2012, 09:20
Re: What's wrong? - by JamesC - 16.02.2012, 09:29
Re: What's wrong? - by BaubaS - 16.02.2012, 16:30
Re: What's wrong? - by BaubaS - 16.02.2012, 19:54
Re: What's wrong? - by JamesC - 17.02.2012, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)