The script is Right yet it dont work
#1

Код:
SetTimerEx("tele1", 100, true, "i");
^^^^^ I ADDED TO "ONGAMEMODEINIT" SO THAT MIGHT be the problem...
and

Код:
public tele1(playerid)
{
 if(IsPlayerInRangeOfPoint(playerid, 7.0, 256.5103,1802.0255,7.5278))
  {
 SetPlayerPos(playerid,2543.3181,-1306.0562,1025.0703);
 SetPlayerInterior( playerid, 2 );
}
	  return 1;
}
dont work, i cant see why!
Reply
#2

maybe use this.
Код:
if(IsPlayerInArea(playerid, 1341.555, -2724.066, 2174.376, -2199.016))
Reply
#3

Maybe learn how and where to use the SetTimerEx function.
Reply
#4

Quote:
Originally Posted by ~Dangun!
maybe use this.
Код:
if(IsPlayerInArea(playerid, 1341.555, -2724.066, 2174.376, -2199.016))
undefined symbol
Reply
#5

Quote:
Originally Posted by Don Correlli
Maybe learn how and where to use the SetTimerEx function.
+1

Change this:
pawn Код:
SetTimerEx("tele1", 100, true, "i");
To this:
pawn Код:
SetTimerEx("tele1", 100, true, "i",playerid);
Reply
#6

pawn Код:
SetTimer("tele1", 100, 1);
pawn Код:
forward tele1(playerid);
public tele1(playerid)
{
  for(new i=0; i < MAX_PLAYERS; i++)
  {
     if(IsPlayerInRangeOfPoint(i, 7.0, 256.5103,1802.0255,7.5278))
     {
        SetPlayerPos(i,2543.3181,-1306.0562,1025.0703);
        SetPlayerInterior(i, 2);  
     }
  }
}
Reply
#7

Quote:
Originally Posted by Johnson_boy
pawn Код:
SetTimer("tele1", 100, 1);
pawn Код:
forward tele1(playerid);
public tele1(playerid)
{
  for(new i=0; i < MAX_PLAYERS; i++)
  {
     if(IsPlayerInRangeOfPoint(i, 7.0, 256.5103,1802.0255,7.5278))
     {
        SetPlayerPos(i,2543.3181,-1306.0562,1025.0703);
        SetPlayerInterior(i, 2);  
     }
  }
}
testing it.......
Reply
#8

Quote:
Originally Posted by Johnson_boy
pawn Код:
SetTimer("tele1", 100, 1);
pawn Код:
forward tele1(playerid);
public tele1(playerid)
{
  for(new i=0; i < MAX_PLAYERS; i++)
  {
     if(IsPlayerInRangeOfPoint(i, 7.0, 256.5103,1802.0255,7.5278))
     {
        SetPlayerPos(i,2543.3181,-1306.0562,1025.0703);
        SetPlayerInterior(i, 2);  
     }
  }
}
Use SetTimerEx function but like i said already: learn how and where to use it, check the wiki page.
Reply
#9

Quote:
Originally Posted by Johnson_boy
pawn Код:
SetTimer("tele1", 100, 1);
pawn Код:
forward tele1(playerid);
public tele1(playerid)
{
  for(new i=0; i < MAX_PLAYERS; i++)
  {
     if(IsPlayerInRangeOfPoint(i, 7.0, 256.5103,1802.0255,7.5278))
     {
        SetPlayerPos(i,2543.3181,-1306.0562,1025.0703);
        SetPlayerInterior(i, 2);  
     }
  }
}
thanks!
Reply
#10

There's a needless playerid param in the function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)