Jump to content
  • 0

[Ajutor] Error GM !


RzV.

Question

Am luat un GM frumos de pe net.. imi da 26 errori si nu stiu cum sa scap de ele... am incercat toate metodele.. !!! cine ma poate ajuta?

D:\SCRIPTING\server\gamemodes\GF2.pwn(2482) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2486) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2490) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2494) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2498) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2502) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2506) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2520) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2524) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2528) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2532) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2536) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2550) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2554) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2558) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2572) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2576) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(2580) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(3475) : warning 204: symbol is assigned a value that is never used: "string"

D:\SCRIPTING\server\gamemodes\GF2.pwn(3922) : error 004: function "IsPlayerInArea" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(4050) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(4052) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(4065) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(4067) : error 004: function "PlayerToPoint" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(4845) : error 004: function "ProxDetector" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(6016) : error 004: function "CrimInRange" is not implemented

D:\SCRIPTING\server\gamemodes\GF2.pwn(6803) : error 004: function "ProxDetector" is not implemented

Compilation aborted.Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase

26 Errors.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

1.Eroarea error 004: function "PlayerToPoint" is not implemented, iti arata ca functia nu este implementata.Ce ai de facut in acest caz ?:

Adauga linia urmatoare in gamemod-ul tau:

PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z) // by SkizzoTrick !
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}
2.Avertizmentul warning 204: symbol is assigned a value that is never used: "string" iti spune ca "string" nu este folosit nici odata, asa ca poti sa stergi new string[X];. 3.Eroarea error 004: function "IsPlayerInArea" is not implemented iti spune acelasi lucru ca si la functia PlayerToPoint.Adauga urmatorul cod in gamemode:
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y) // by MadeMan
{
    new Float:pX, Float:pY, Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    if(pX <= max_x && pX >= min_x && pY <= max_y && pY >= min_y) return 1;
    return 0;
}
4.Eroarea error 004: function "ProxDetector" is not implemented ____,,____:
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5); // by XStormiest

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////

public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5) // by XStormiest

{

    if(IsPlayerConnected(playerid))

    {

        new Float:posx, Float:posy, Float:posz;

        new Float:oldposx, Float:oldposy, Float:oldposz;

        new Float:tempposx, Float:tempposy, Float:tempposz;

        GetPlayerPos(playerid, oldposx, oldposy, oldposz);

        for(new i = 0; i < MAX_PLAYERS; i++)

        {

            if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))

            {

                GetPlayerPos(i, posx, posy, posz);

                tempposx = (oldposx -posx);

                tempposy = (oldposy -posy);

                tempposz = (oldposz -posz);

                if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16))) // If the player is within 16 meters

                {

                    SendClientMessage(i, col1, string);

                }

                else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8))) // within 8 meters

                {

                    SendClientMessage(i, col2, string);

                }

                else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4))) //4 meters

                {

                    SendClientMessage(i, col3, string);

                }

                else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2))) //2 meters

                {

                    SendClientMessage(i, col4, string);

                }

                else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) //1 meter

                {

                    SendClientMessage(i, col5, string);

                }

            }

            else

            {

                SendClientMessage(i, col1, string);

            }

        }

    }

    return 1;

}
5.Eroarea error 004: function "CrimInRange" is not implemented ____,,____:
forward CrimInRange(Float:radi, playerid,copid); // by DarkyTheAngel

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////

public CrimInRange(Float:radi, playerid,copid) // by DarkyTheAngel
{
	if(IsPlayerConnected(playerid)&&IsPlayerConnected(copid))
	{
		new Float:posx, Float:posy, Float:posz;
		new Float:oldposx, Float:oldposy, Float:oldposz;
		new Float:tempposx, Float:tempposy;
		GetPlayerPos(playerid, oldposx, oldposy, oldposz);
		GetPlayerPos(copid, posx, posy, posz);
		tempposx = (oldposx -posx);
		tempposy = (oldposy -posy);
		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)))
		{
			return 1;
		}
	}
	return 0;
}

Daca nimic din ce am scris eu mai sus,nu te ajuta, probabil ai uitat vreo acolada.

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.