COMMAND:fish(playerid,params[])
{
if(!IsPlayerInRangeOfPoint(playerid == 7,2941.1365,-2051.7290,3.5480,269.1705)) return SendClientMessage(playerid,COLOR_DARKORANGE,"You're not at the fishing place");
if(fishprogress[playerid] > 0) return SendClientMessage(playerid,COLOR_DARKORANGE,"You're already doing this job!");
else
fishprogress[playerid] = 1;
SendClientMessage(playerid,COLOR_DARKORANGE,"You've started your fishing job. Take a boat and go to the checkpoints!");
SetPlayerCheckpoint(playerid,3019.4819,-1259.1970,0.8884,315.4811);
return 1;
}
COMMAND:fish(playerid,params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 15,2941.1365,-2051.7290,3.5480,269.1705)) return SendClientMessage(playerid,COLOR_DARKORANGE,"You're not at the fishing place");
if(fishprogress[playerid] > 0) return SendClientMessage(playerid,COLOR_DARKORANGE,"You're already doing this job!");
else
fishprogress[playerid] = 1;
SendClientMessage(playerid,COLOR_DARKORANGE,"You've started your fishing job. Take a boat and go to the checkpoints!");
SetPlayerCheckpoint(playerid,3019.4819,-1259.1970,0.8884,315.4811);
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid == 7,2941.1365,-2051.7290,3.5480,269.1705)) return SendClientMessage(playerid,COLOR_DARKORANGE,"You're not at the fishing place");
if(!IsPlayerInRangeOfPoint(playerid,7,2941.1365,-2051.7290,3.5480) return SendClientMessage(playerid,COLOR_DARKORANGE,"You're not at the fishing place"); // what is 269.1705??
your isplayerinrangeofpoint isnt right
it must be IsPlayerInRangeOfPoint(playerid,x,y,z,range) you have IsPlayerInRangeOfPoint(playerid == range,x,y,z,) wich i cant seem to understand that it compiles |
your isplayerinrangeofpoint isnt right
it must be IsPlayerInRangeOfPoint(playerid,x,y,z,range) you have IsPlayerInRangeOfPoint(playerid == range,x,y,z,) wich i cant seem to understand that it compiles |