[POMOC] Error

Započeo xXxlumpiexXx
16. Jun 2011.
1,245
pregleda
14
postova
kodiak
3
Hustler
16. Jun 2011.
Skripta koju koristim: GF
Detaljan opis problema: kad idem kompilati pokaze mi 1 error: if(GetPointDistanceToPointExMorph
Dio skripte:
public NameTimer()
{
foreach (Player, i)
{
foreach (Player, 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)
{
if(PlayerInfo != 1)
    {
ShowPlayerNameTagForPlayer(i,q,1);
}
    }
else
{
ShowPlayerNameTagForPlayer(i,q,0);
                }
            }
        }
}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): http://slike.hr/slike/pawnoo_2bff3.jpg.html
http://slike.hr/slike/pawno_4e140.jpg.html
Mr.Lowrey
5
Godfather
16. Jun 2011.
skini morphinc.inc
kodiak
3
Hustler
16. Jun 2011.
Quote from June 16, 2011, 10:31 am:
skini morphinc.inc


gdje bi to mogao skinuti?
Mr.Lowrey
5
Godfather
16. Jun 2011.
lol gdej na na samp forumima :S
kodiak
3
Hustler
16. Jun 2011.
skinuo sam, ubacio u include file i opet mi isto izbaci error
Mr.Lowrey
5
Godfather
16. Jun 2011.
stavi na vh moda #include
kodiak
3
Hustler
16. Jun 2011.
Quote from June 16, 2011, 11:51 am:
stavi na vh moda #include


stavljeno, i dalje isto
Mr.Lowrey
5
Godfather
16. Jun 2011.
a da postavis errore i liniju?
kodiak
3
Hustler
16. Jun 2011.
public NameTimer()
{
foreach (Player, i)
{
foreach (Player, 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)
{
if(PlayerInfo != 1)
    {
ShowPlayerNameTagForPlayer(i,q,1);
}
    }
else
{
ShowPlayerNameTagForPlayer(i,q,0);
                }
            }
        }
}
}

http://slike.hr/slike/pawnoo_2bff3.jpg.html
http://slike.hr/slike/pawno_4e140.jpg.html

rekao sam ti da je sve isto
Mr.Lowrey
5
Godfather
16. Jun 2011.
aha, brate neznam, ako si dobro stavio taj inc mora ti raditi, jer je ta funkcija iz tog inc-a
kodiak
3
Hustler
16. Jun 2011.
Quote from June 16, 2011, 4:50 pm:
aha, brate neznam, ako si dobro stavio taj inc mora ti raditi, jer je ta funkcija iz tog inc-a


evo sad sam kompilao i pokazalo mi je nove errore

slika: http://slike.hr/slike/pawn_87662.jpg.html

dio skripte:
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);
}
}}}}}
}
Mr.Lowrey
5
Godfather
16. Jun 2011.
znaci da si to vec definirao, samo nadi te linije i obrisi!
Mladen Smiljan
4
Enforcer
16. Jun 2011.
To vec imas definirano... Negdje si dva puta definiro 😄 nadji CTRL+F i obrisi 😄
kodiak
3
Hustler
17. Jun 2011.
Evo nasao sam problem, rijesio sam ga (bilo je ponavljanje 😄) no sad imam drugi error!

Dio skripte:
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);
}
}}}}}
}


Slika: http://slike.hr/slike/zurtzu_49ba6.jpg.html

EDIT: Krivu sliku sam postavio (bio) 😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha