[Help]0.3x Pawno errors
#1

Hey guys I keep recieving the following erros! Can anyone tell me how to fix it! Im not that advanced yet in pawno, but would greatly appreciate some help! Thanks!



C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2200) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2229) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2265) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2266) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2293) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2769) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2780) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2792) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2796) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(280 : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2812) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2816) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2820) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2824) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(282 : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2832) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2836) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(284 : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2852) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2856) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2860) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2864) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2876) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2880) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2884) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Home\Desktop\samp02Xserver.win32\gamemode s\chainsrp.pwn(2896) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.



Please help me!
Reply
#2

Put this in your script

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;
}
You will need to forward the other functions
Reply
#3

What do you mean and where do add this?
Reply
#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
#5

this did not help!
Reply
#6

Have you even tried what i said?
Reply
#7

Yes, over and over!
Reply
#8

What errors are you getting then if it didn't work?
Reply
#9

The problem is not from Forwards or Publics. You must remember what did you edit last. You missed a bracket { } somewhere.
Reply
#10

Quote:
Originally Posted by Dark_Kostas
The problem is not from Forwards or Publics. You must remember what did you edit last. You missed a bracket { } somewhere.
No he didn't, it's only showing 26 errors because that's the max it will show. He just copied and pasted a script and ofcourse it doesn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)