Strange "unknown command" problem
#6

I had the same problem, I thought I fixed it this way:

pawn Код:
new h = -1;
for(h; h < MAX_HOUSES; h++)
{
        if(IsPlayerInDynamicCP(playerid,CPID[h])) break;
}

if(h == -1) return SendClientMessage(playerid, -1, "You're not near a house!");
else
{
  //Code if he is in a CP
}
May look a bit unorganized, but first get the house ID by doing a loop, when he's in the dynamic CP break that loop so you'll get result of 'h' being the house ID, work forward from that point.
Reply


Messages In This Thread
Strange "unknown command" problem - by iggy1 - 19.08.2010, 10:45
Re: Strange "unknown command" problem - by R@ger - 19.08.2010, 10:51
Re: Strange "unknown command" problem - by iggy1 - 19.08.2010, 11:04
Re: Strange "unknown command" problem - by Claude - 19.08.2010, 11:20
Re: Strange "unknown command" problem - by iggy1 - 19.08.2010, 11:25
Re: Strange "unknown command" problem - by Hiddos - 19.08.2010, 12:30
Re: Strange "unknown command" problem - by iggy1 - 19.08.2010, 12:44
Re: Strange "unknown command" problem - by Hiddos - 19.08.2010, 13:07
Re: Strange "unknown command" problem - by iggy1 - 19.08.2010, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)