Ayuda con йste error
#6

pawn Код:
new pdistance = 1;
forward NameTimer();
Float:GetPointDistanceToPointExMorph(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
{
new Float:x, Float:y, Float:z;
x = x1-x2;
y = y1-y2;
z = z1-z2;
return floatsqroot(x*x+y*y+z*z);
}
stock SetPDistance(dista)
{
pdistance = dista;
}
stock GetPDistance()
{
return pdistance;
}
stock EnableDistancedNameTag(delay)
{
SetTimer("NameTimer",delay,1);
}
forward NameTimer();
public NameTimer()
    {
    for(new i = 0;i < MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i))
    {
    for(new q = 0;q < MAX_PLAYERS;q++)
    {
    if(IsPlayerConnected(q))
    {
    new Float:p1x;
    new Float:p1y;
    new Float:p1z;
    new Float:p2x;
    new Float:p2y;
    new Float:p2z;
    if(IsPlayerConnected(i) && IsPlayerConnected(q))
    {
    GetPlayerPos(i,p1x,p1y,p1z);
    GetPlayerPos(q,p2x,p2y,p2z);
    if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
        {
        ShowPlayerNameTagForPlayer(i,q,1);
        }
    else
        {
        ShowPlayerNameTagForPlayer(i,q,0);
        }
    }}}}}
}
Reply


Messages In This Thread
Ayuda con йste error - by Glimma - 09.06.2012, 18:36
Respuesta: Ayuda con йste error - by El Bardo - 09.06.2012, 18:39
Respuesta: Ayuda con йste error - by Glimma - 09.06.2012, 18:42
Respuesta: Ayuda con йste error - by El Bardo - 09.06.2012, 18:46
Respuesta: Ayuda con йste error - by TiNcH010 - 09.06.2012, 18:47
Respuesta: Ayuda con йste error - by Glimma - 09.06.2012, 18:48
Respuesta: Ayuda con йste error - by El Bardo - 09.06.2012, 18:51
Respuesta: Ayuda con йste error - by TiNcH010 - 09.06.2012, 18:52

Forum Jump:


Users browsing this thread: 1 Guest(s)