Jump to content
  • 0

Problema Compile


Daniel_Dani

Question

C:\Documents and Settings\Dani\Desktop\LARP\gamemodes\larp.pwn(43396) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")

C:\Documents and Settings\Dani\Desktop\LARP\gamemodes\larp.pwn(44594) : warning 235: public function lacks forward declaration (symbol "NameTimer")

C:\Documents and Settings\Dani\Desktop\LARP\gamemodes\larp.pwn(44614) : error 017: undefined symbol "GetPointDistanceToPointExMorph"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

Stie cineva cum rezolv aceasta eroare?

vqqi6h.gif
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

Guest RockStar

OnPlayerPrivmsg a fost scos din 0.3 deci stergel din gm/fs

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) 
                        { 
                            if(PlayerInfo[q][pMaskuse] != 1) 
                            { 
                                ShowPlayerNameTagForPlayer(i,q,1); 
                            } 
                        } 
                        else 
                        { 
                            ShowPlayerNameTagForPlayer(i,q,0); 
                        } 
                    } 
                } 
            } 
        } 
    } 
}  
GetPointDistanceToPointExMorph
stock 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); 
}

Bagale undeva in gm/fs

Link to comment
Share on other sites

C:\Documents and Settings\Dani\Desktop\LARP\gamemodes\larp.pwn(45510) : warning 208: function with tag result used before definition, forcing reparse

C:\Documents and Settings\Dani\Desktop\LARP\gamemodes\larp.pwn(45472) : error 001: expected token: "(", but found ";"

C:\Documents and Settings\Dani\Desktop\LARP\gamemodes\larp.pwn(45473) : error 001: expected token: ")", but found "public"

C:\Documents and Settings\Dani\Desktop\LARP\gamemodes\larp.pwn(45474) : error 021: symbol already defined: "NameTimer"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

3 Errors.

Am gresit oare undeva de da iar erori?Da eroare exact la liniile adaugate

vqqi6h.gif
Link to comment
Share on other sites

C:\Documents and Settings\Dani\Desktop\LARP\gamemodes\larp.pwn(45472) : warning 208: function with tag result used before definition, forcing reparse

C:\Documents and Settings\Dani\Desktop\LARP\gamemodes\larp.pwn(44589) : warning 235: public function lacks forward declaration (symbol "NameTimer")

Acum da aceste erori,liniile fiind:

45472 are codul :                                                                                                                                stock Float:GetPointDistanceToPointExMorph(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)

44589 are codul:    public NameTimer()

Si multumesc Rock pentru ajutorul de pana acum.

vqqi6h.gif
Link to comment
Share on other sites

C:\Documents and Settings\Dani\Desktop\Raven's Roleplay 0.3c Work\gamemodes\larp.pwn(16794) : error 017: undefined symbol "newcar"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

Asta cum as putea sa o rezolv?Ultima promit,scuze ca va stresez cu intrebari.O zi buna,astept un raspuns de la dumneavoastra.

vqqi6h.gif
Link to comment
Share on other sites

C:\Documents and Settings\Dani\Desktop\Raven's Roleplay 0.3c Work\gamemodes\larp.pwn(16794) : error 017: undefined symbol "newcar"

Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase

1 Error.

Asta cum as putea sa o rezolv?Ultima promit,scuze ca va stresez cu intrebari.O zi buna,astept un raspuns de la dumneavoastra.

vqqi6h.gif
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.