Jump to content
  • 0

Erori


TzAkS

Question

C:\Users\Tzaks\Desktop\gm.pwn(447) : error 025: function heading differs from prototype

C:\Users\Tzaks\Desktop\gm.pwn(2428) : error 004: function "split" is not implemented

C:\Users\Tzaks\Desktop\gm.pwn(2577) : error 025: function heading differs from prototype

C:\Users\Tzaks\Desktop\gm.pwn(2578) : error 021: symbol already defined: "GetDistanceBetweenPlayers"

C:\Users\Tzaks\Desktop\gm.pwn(2582) : warning 213: tag mismatch

C:\Users\Tzaks\Desktop\gm.pwn(2586) : warning 213: tag mismatch

C:\Users\Tzaks\Desktop\gm.pwn(4225) : error 004: function "SetPlayerToTeamColor" is not implemented

C:\Users\Tzaks\Desktop\gm.pwn(4250) : error 004: function "SetPlayerToTeamColor" is not implemented

C:\Users\Tzaks\Desktop\gm.pwn(4548) : error 004: function "OnPropUpdate" is not implemented

C:\Users\Tzaks\Desktop\gm.pwn(4615) : error 004: function "OnPropUpdate" is not implemented

C:\Users\Tzaks\Desktop\gm.pwn(6575) : error 004: function "SendAdminMessage" is not implemented

Linia 447  forward Float:GetDistanceBetweenPlayers(p1,p2);
Linia 2428  	        split(str, load, '|');
Linia 2577   public Float:GetDistanceBetweenPlayers(p1,p2)
Linia 2578  { 
Linia 2582  		return -1.00;   
Linia 2586   return	floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
Linia 4225  				SetPlayerToTeamColor(i);
Linia 4250   				SetPlayerToTeamColor(i);
Linia 4548	OnPropUpdate();
Linia 4615  	OnPropUpdate();
Linia 6575     SendAdminMessage(COLOR_LIGHTRED, str);

gXvsYS
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

pai atunci daca sti engleza vei sti ca:

1.

C:\Users\Tzaks\Desktop\gm.pwn(2578) : error 021: symbol already defined: "GetDistanceBetweenPlayers" (adik este deja definit printr-un include sau ceva si atunci il vei putea sterge acel public cat si forward)

2.

C:\Users\Tzaks\Desktop\gm.pwn(4250) : error 004: function "SetPlayerToTeamColor" is not implemented

C:\Users\Tzaks\Desktop\gm.pwn(4548) : error 004: function "OnPropUpdate" is not implemented

aici spune ca nu sun implementate... adik trebuie sa creezi un forward pt cele 2 functii cat si un public... asta in cazul in care tu sustii ca nu ai uitat nici o }

Link to comment
Share on other sites

1. Aici iti voi da exemplu bun/rau:

error 025: function heading differs from prototype

Exemplu rau:

forward Float:GetDistanceBetweenPlayers(p1);

public Float:GetDistanceBetweenPlayers(p1,p2)
{
    //cod
}
Exemplu bun:
forward Float:GetDistanceBetweenPlayers(p1,p2);

public forward Float:GetDistanceBetweenPlayers(p1,p2)
{
    //cod
}
2. error 004: function "split" is not implemented . Schimba public split( parametrii ) sau split( parametrii ) ( functia in care se defineste split ) in
forward split( parametrii );
public split( parametrii )

3. Ca la prima.

4. error 021: symbol already defined: "GetDistanceBetweenPlayers" e deja definit, sterge functia din GM, cel mai probabil este definita intr-un include, sau daca e tot in GM definita, sterge una din definitii.

5-6. Da liniile de mai sus.

7. Restul ca la a 2-a.

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.