My /fishing command isn't working with an array.
#5

Hm, alright. I've tried implementing a message saying when they're not near a fishing spot. It works, but when they ARE in range of a spot then the message still occurs and no actions happen. What could be the issue?

pawn Код:
for(new i = 0; i < sizeof(fishingspots); i++)
    {
        if(!IsPlayerInRangeOfPoint(playerid, 3.0, fishingspots[i][0], fishingspots[i][1], fishingspots[i][2])) return SCM(playerid, COLOR_GREY, "Error: You're not near a fishing location. Search near water.");
        {
            currentlyfishing[playerid] = 1;
            SetTimerEx("FishTimer", 5000, false, "i", playerid);
            TogglePlayerControllable(playerid, 0);
            ApplyAnimation(playerid,"BOMBER","BOM_Plant_Loop",4,1,0,0, 0,0,1);
            break;
        }
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)