Find integer from all the files
#4

Quote:
Originally Posted by Divergent
Посмотреть сообщение
Create an enumerator for the teleports containing x1, x2, y1, y2, z1, z2, radius [optional], and whether it's created or not. Then it's simple, just create commands to set a teleport position down, then in the /usetp command

Код:
fpr(new id = 0; id < MAX_TELEPORTS; id++)
{
       IsPlayerInRangeOfPoint(playerid, TPInfo[id][radius], TPInfo[id][x], TPInfo[id][y], TPInfo[id][z]) && TPInfo[id][Created] == true)
       {
              SetPlayerPos(playerid, TPInfo[id][x2], TPInfo[id][y2], TPInfo[id][z2]);
       }
}
Quote:
Originally Posted by ******
Посмотреть сообщение
Basically, you need to load all the files in advance and store them in an array. You can't search through the files when someone uses the command (technically you can, but it will KILL your performance).
Umm, what do you mean "(technically you can, but it will KILL your performance).", how can i do this?
and how can i load all the files in advance and store them in an array?
you can send me link for a guide please?
Reply


Messages In This Thread
Find integer from all the files - by Lirbo - 12.12.2014, 16:55
Re: Find integer from all the files - by Divergent - 12.12.2014, 17:03
Re: Find integer from all the files - by Lirbo - 12.12.2014, 17:05
Re: Find integer from all the files - by Lirbo - 12.12.2014, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)