/siren problem
#3

Quote:
Originally Posted by justinnater
Посмотреть сообщение
Replace SendClientMessageEx with SendClientMessage.
And forward Proxdetector: forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
And a public:

Код:
public ProxDetectorS(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);
		//radi = 2.0; //Trigger Radius
		GetPlayerPos(targetid, posx, posy, posz);
		tempposx = (oldposx -posx);
		tempposy = (oldposy -posy);
		tempposz = (oldposz -posz);
		//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
		{
			return 1;
		}
	}
	return 0;
}
thanks for the reply. I have fixed some warnings but I still get some of this

Код:
error 025: function heading differs from prototype
Reply


Messages In This Thread
/siren problem - by kbalor - 25.08.2012, 10:08
Re: /siren problem - by justinnater - 25.08.2012, 10:11
Re: /siren problem - by kbalor - 25.08.2012, 10:33
Re: /siren problem - by CentyPoo - 25.08.2012, 10:40
Re: /siren problem - by [MM]RoXoR[FS] - 25.08.2012, 10:42
Re: /siren problem - by kbalor - 25.08.2012, 10:45
Re: /siren problem - by kbalor - 25.08.2012, 10:48
Re: /siren problem - by clarencecuzz - 25.08.2012, 11:05
Re: /siren problem - by kbalor - 25.08.2012, 11:29
Re: /siren problem - by clarencecuzz - 25.08.2012, 11:34

Forum Jump:


Users browsing this thread: 2 Guest(s)