/siren problem
#6

Код:
warning 235: public function lacks forward declaration (symbol "ProxDetector")
error 035: argument type mismatch (argument 3)
error 035: argument type mismatch (argument 3)
error 035: argument type mismatch (argument 3)
On top of my script
Код:
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
pawn Код:
forward ProxDetectorS(Float:radi, playerid, targetid);
public ProxDetector(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;
}
What is the right way??
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: 1 Guest(s)