CheckPoint Problem
#1

hey guys i have a /find sistem and is working 90% perfect but i have only one small problem , when i use /find name/id i get a checkpoint for 1 sec on that player and 1 on sf same for 1 sec and it's repeating 1 sec here 1 sec there

this code is the problem , can some1 say if is a problem with this code?

Код HTML:
if(targetfind[i] >= 0 && UseFind[i] == 1)
   		{
   		    new target;
   		    target = targetfind[i];
   		    if(BizzEntered[target] > -1)
   		    {
				new j;
				j = BizzEntered[target];
				SetPlayerCheckpoint(i,BizzInfo[j][bEntranceX], BizzInfo[j][bEntranceY], BizzInfo[j][bEntranceZ],4);
			}
			else if(HouseEntered[target] > -1)
			{
				new j;
				j = HouseEntered[target];
				SetPlayerCheckpoint(i,HouseInfo[j][hEntranceX],HouseInfo[j][hEntranceY],HouseInfo[j][hEntranceZ],4);
			}
			else
			{
   		    	new Float: x1, Float: y1, Float: z1;
   		    	GetPlayerPos(target,x1,y1,z1);
   		    	SetPlayerCheckpoint(i,x1,y1,z1,4);
   		    }
   		}
Reply
#2

First of all, make sure the script is readable, use brackets and spaces like you're supposed to do.

Код HTML:
if(targetfind[i] >= 0 && UseFind[i] == 1)
{
         new target;
         target = targetfind[i];
   	 if(BizzEntered[target] > -1)
         {
	          new j;
		  j = BizzEntered[target];
		  SetPlayerCheckpoint(i,BizzInfo[j][bEntranceX], BizzInfo[j][bEntranceY], BizzInfo[j][bEntranceZ],4);
	  }
	  else if(HouseEntered[target] > -1)
	  {
		  new j;
		  j = HouseEntered[target];
		  SetPlayerCheckpoint(i,HouseInfo[j][hEntranceX],HouseInfo[j][hEntranceY],HouseInfo[j][hEntranceZ],4);
	   }
	   else
	   {
                    new Float: x1, Float: y1, Float: z1;
   		    GetPlayerPos(target,x1,y1,z1);
   		    SetPlayerCheckpoint(i,x1,y1,z1,4);
            }
}
Second: Try to make a loop. And you should check if the 'HouseEntered[target]' is working.
Reply
#3

nope didn't work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)