07.01.2016, 22:23
Can you make it like this:
On top of your script: new FishCooldown[MAX_PLAYERS];
Then change the forward to this:
Tell me if it prints the "Work" text on the samp-server.exe when Fished[playerid] is 5 or above.
On top of your script: new FishCooldown[MAX_PLAYERS];
Код:
if(Fished[playerid] >= 5) { print("Works"); Fished[playerid] = 0; FishTime[playerid] = 5; FishCooldown[playerid] = SetTimerEx("FishingTime", 1000, true, "i", playerid); }
Код:
forward FishingTime(playerid); public FishingTime(playerid) { if(FishTime[playerid] > 0) { FishTime[playerid] --; if(FishTime[playerid] == 0) { KillTimer(FishCooldown[playerid]); } } return 1; }