[Help]0.3x Pawno errors
#4

In your script search the functions:

SafeGivePlayerMoney
SafeResetPlayerWeapons
SafeGivePlayerWeapon

look at the headers of the functions so for example ill assume the functions are:

pawn Код:
public SafeGivePlayerMoney(playerid, money)
{
  //Code
}

public SafeResetPlayerWeapons(playerid)
{

}

public SafeGivePlayerWeapon(playerid, weaponid)
{

}
copy the SafeGivePlayerWeapon(playerid, weaponid) not the public part or the code inside the { }
and near the top of your script below #include <a_samp> add:

pawn Код:
forward SafeGivePlayerMoney(playerid, money);
forward SafeResetPlayerWeapons(playerid);
forward SafeGivePlayerWeapon(playerid, weaponid);
I am assuming that's how the function is don't just copy what i wrote because it might be different
to that inside your script

and near your forwards put:

pawn Код:
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[Help]0.3x Pawno errors - by Blade_Cervetti - 25.11.2009, 22:09
Re: [Help]0.3x Pawno errors - by hoodline - 25.11.2009, 22:33
Re: [Help]0.3x Pawno errors - by Blade_Cervetti - 25.11.2009, 23:36
Re: [Help]0.3x Pawno errors - by hoodline - 25.11.2009, 23:43
Re: [Help]0.3x Pawno errors - by Blade_Cervetti - 26.11.2009, 00:51
Re: [Help]0.3x Pawno errors - by hoodline - 26.11.2009, 01:35
Re: [Help]0.3x Pawno errors - by Blade_Cervetti - 26.11.2009, 01:44
Re: [Help]0.3x Pawno errors - by hoodline - 26.11.2009, 01:49
Re: [Help]0.3x Pawno errors - by Dark_Kostas - 26.11.2009, 06:05
Re: [Help]0.3x Pawno errors - by Joe Staff - 26.11.2009, 07:29

Forum Jump:


Users browsing this thread: 1 Guest(s)