C:\Documents and Settings\Timmie\Bureaublad\sa-mp\samp zooi\pawno\include\mapicon.inc(272) : warning 219: local variable "x2" shadows a variable at a preceding level C:\Documents and Settings\Timmie\Bureaublad\sa-mp\samp zooi\pawno\include\mapicon.inc(272) : warning 219: local variable "y2" shadows a variable at a preceding level C:\Documents and Settings\Timmie\Bureaublad\sa-mp\samp zooi\pawno\include\mapicon.inc(272) : warning 219: local variable "z2" shadows a variable at a preceding level C:\Documents and Settings\Timmie\Bureaublad\sa-mp\samp zooi\pawno\include\morphinc.inc(3) : warning 219: local variable "x2" shadows a variable at a preceding level C:\Documents and Settings\Timmie\Bureaublad\sa-mp\samp zooi\pawno\include\morphinc.inc(3) : warning 219: local variable "y2" shadows a variable at a preceding level C:\Documents and Settings\Timmie\Bureaublad\sa-mp\samp zooi\pawno\include\morphinc.inc(3) : warning 219: local variable "z2" shadows a variable at a preceding level C:\Documents and Settings\Timmie\Bureaublad\second life samp server\gamemodes\new(1).pwn(24818) : warning 219: local variable "x2" shadows a variable at a preceding level C:\Documents and Settings\Timmie\Bureaublad\second life samp server\gamemodes\new(1).pwn(24818) : warning 219: local variable "y2" shadows a variable at a preceding level C:\Documents and Settings\Timmie\Bureaublad\second life samp server\gamemodes\new(1).pwn(24818) : warning 219: local variable "z2" shadows a variable at a preceding level
Originally Posted by Swift_
We'd have to see yoru script to help.
|
forward OnPlayerUnjail(playerid);
public Float:GetDistanceBetweenPlayers(p1,p2)
{
new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
{
return -1.00;
}
GetPlayerPos(p1,x1,y1,z1);
GetPlayerPos(p2,x2,y2,z2);
return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
}
Originally Posted by Swift_
Dont' listen to my older posts, just saw where the errors came from.
Go into the two includes, and change the varibles there to something else. |