Jump to content

Question

Posted

Salut, am luat si eu gm-ul de la Edison(Gamemode de la 0) pe care am vrut sa incep sa lucrez, sa mai invat unele lucruri.. etc

Si am primit asta, aveti idee de ce?

SA-MP RPG Server\gamemodes\RPG.pwn(2502) : error 025: function heading differs from prototype
SA-MP RPG Server\gamemodes\RPG.pwn(2502) : error 025: function heading differs from prototype
SA-MP RPG Server\gamemodes\RPG.pwn(2502) : error 021: symbol already defined: "Range"
SA-MP RPG Server\gamemodes\RPG.pwn(2502) : fatal error 107: too many error messages on one line

Si asta este linia/functia ... 

function Range(Float:radi, playerid, targetid) {
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
		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); GetPlayerPos(targetid, posx, posy, posz);
		tempposx = (oldposx -posx); tempposy = (oldposy -posy); tempposz = (oldposz -posz);
		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) return 1;
	}
	return 0;
}

 

NU E DE COMPETENTA MEA SA FAC LUMEA MAI BUNA.

 

2 answers to this question

Recommended Posts

  • 0
Posted
11 hours ago, VLM said:

Uita-te prin GM daca mai este definit "Range"


error 021: symbol already defined: "Range"

M-am uitat si nu mai este definit.....

NU E DE COMPETENTA MEA SA FAC LUMEA MAI BUNA.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.