Knock command help
#5

Put it outside the loop and return true at the end.

PHP код:
CMD:knock(playeridparams[])
{
     new 
bool:nearHouse false;
     for(new 
idxidx MAX_HOUSESidx++)
     {
         if(
IsPlayerInRangeOfPoint(playerid, ...)
         {
             
nearHouse true;
             for(new 
0GetPlayerPoolSize(); <= ji++)
             {
                  
//code;
             
}
         }
         return 
1;
      }
      if(
nearHouse == 1)
      {
           
SendClientMessage(playeridCOLOR_WHITE"You are not near a house.");
       } 
Reply


Messages In This Thread
Knock command help - by maximthepain - 18.08.2017, 10:07
Re: Knock command help - by NewFreeroamStunt - 18.08.2017, 10:13
Re: Knock command help - by maximthepain - 18.08.2017, 10:15
Re: Knock command help - by coool - 18.08.2017, 10:26
Re: Knock command help - by Kane - 18.08.2017, 10:26
Re: Knock command help - by maximthepain - 18.08.2017, 10:47

Forum Jump:


Users browsing this thread: 1 Guest(s)