Jump to content
  • 0

problema


RABIGKY

Question

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.

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.