SA-MP Forums Archive
Function is not implemented. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Function is not implemented. (/showthread.php?tid=419504)



Function is not implemented. - seanny - 01.03.2013

Quote:

C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(55) : warning 201: redefinition of constant/macro (symbol "strcpy(%1,%2,%3)")
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(2467) : warning 235: public function lacks forward declaration (symbol "ab_OnEnterExitModShop")
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(2502) : error 017: undefined symbol "PlayerNameEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(2503) : error 004: function "ProxDetector" is not implemented
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3066) : error 017: undefined symbol "IsNotAEngineCar"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3091) : error 017: undefined symbol "IsAnOwnableCar"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3113) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3118) : error 017: undefined symbol "IsACopCar"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3124) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3130) : error 017: undefined symbol "IsAPrisonCar"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3136) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3142) : error 017: undefined symbol "IsAGovCar"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3148) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3154) : error 017: undefined symbol "IsAnAmbulance"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3160) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3166) : error 017: undefined symbol "IsAnArmyCar"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3172) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3537) : error 017: undefined symbol "NameIsRP"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3622) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3624) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3625) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3626) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3763) : error 017: undefined symbol "DOO_SetPlayerPos"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3776) : error 017: undefined symbol "DOO_SetPlayerPos"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3794) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3837) : error 017: undefined symbol "SetPlayerHealthEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3838) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3855) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3862) : error 017: undefined symbol "SetPlayerPosEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3866) : error 017: undefined symbol "SetPlayerHealthEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3870) : error 017: undefined symbol "SetPlayerHealthEx"
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\LVRP\Gamemodes\penls.pwn(3874) : error 017: undefined symbol "DOO_SetPlayerPos"

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


26 Errors.

I did not do any edits to this line, so I don't know where the error is. All help will be appreciated.

[Edit] I've found out where the error is, it is this command. What can be the problem?

All I tried to do was just make it hold more guns.

pawn Код:
if(!strcmp(cmdtext, "/putgun", true))
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerLogged[playerid] == 0)
            {
                SendClientMessage(playerid, LIGHTRED, "* You need to login first!");
                return 1;
            }
            if(PlayerInfo2[Hospitalized][playerid] > 0)
            {
                SendClientMessage(playerid, LIGHTRED, "* Cannot do this right now!");
                return 1;
            }
            if(PlayerInfo2[ReduceTime][playerid] > 0)
            {
                format(string, sizeof(string), "* You need to wait %d seconds to type this command.", PlayerInfo2[ReduceTime][playerid]);
                SendClientMessage(playerid, LIGHTRED, string);

            if(GetPlayerPing(playerid) >= 700)
            {
                SendClientMessage(playerid, GREY, "Your ping is too high to do this command.");
                return 1;
            }
            if(PlayerInfo2[ReduceTime][playerid] > 0)
            {
                format(string, sizeof(string), " Please wait %d seconds to do this command.", PlayerInfo2[ReduceTime][playerid]);
                SendClientMessage(playerid, GREY, string);
                return 1;
            }
           
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, WHITE, "USAGE: /putgun [Slot]");
                SendClientMessage(playerid, WHITE, "Hint: Check /weapons (/weps) to see all used and unused slots.");
                return 1;
            }
            new level;
            level = strval(tmp);

            new gunID = GetPlayerWeapon(playerid);
            new gunAmmo = GetPlayerAmmo(playerid);

            if(gunID != 0 && gunAmmo != 0)
            {
                RemovePlayerWeaponEx(playerid, gunID);
                PlayerInfo[playerid][pInvWeapon][level] = gunID;
                PlayerInfo[playerid][pInvAmmo][level] = gunAmmo;
                new gunname[100];
                GetWeaponName(gunID, gunname, sizeof(gunname));
                format(string, sizeof(string), "You put %s in your inventory.", gunname);
                SendClientMessage(playerid, GREY, string);
                PlayerInfo2[ReduceTime][playerid] = 2;
                return 1;
            }
            else
            {
                SendClientMessage(playerid, GREY, "You don't have a gun to put in!");
                return 1;
            }
        }
        return 1;
    }



Re: Function is not implemented. - DaRk_RaiN - 01.03.2013

Obviously you're mission some includes, check that you're opening the file with the right pawn, the one that has the includes.


Re: Function is not implemented. - seanny - 01.03.2013

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
Obviously you're mission some includes, check that you're opening the file with the right pawn, the one that has the includes.
Nope, I've got all the right includes.


Re: Function is not implemented. - seanny - 01.03.2013

Quote:
Originally Posted by seanny
Посмотреть сообщение
Nope, I've got all the right includes.
Bump, I found the error code, but I don't see any error.


Re : Function is not implemented. - yusei - 01.03.2013

PHP код:
if(!strcmp(cmdtext"/putgun"true))
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerLogged[playerid] == 0)
            {
                
SendClientMessage(playeridLIGHTRED"* You need to login first!");
                return 
1;
            }
            if(
PlayerInfo2[Hospitalized][playerid] > 0)
            {
                
SendClientMessage(playeridLIGHTRED"* Cannot do this right now!");
                return 
1;
            }
            if(
PlayerInfo2[ReduceTime][playerid] > 0)
            {
                
format(stringsizeof(string), "* You need to wait %d seconds to type this command."PlayerInfo2[ReduceTime][playerid]);
                
SendClientMessage(playeridLIGHTREDstring);
            }
            if(
GetPlayerPing(playerid) >= 700)
            {
                
SendClientMessage(playeridGREY"Your ping is too high to do this command.");
                return 
1;
            }
            if(
PlayerInfo2[ReduceTime][playerid] > 0)
            {
                
format(stringsizeof(string), " Please wait %d seconds to do this command."PlayerInfo2[ReduceTime][playerid]);
                
SendClientMessage(playeridGREYstring);
                return 
1;
            }
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridWHITE"USAGE: /putgun [Slot]");
                
SendClientMessage(playeridWHITE"Hint: Check /weapons (/weps) to see all used and unused slots.");
                return 
1;
            }
            new 
level;
            
level strval(tmp);
            new 
gunID GetPlayerWeapon(playerid);
            new 
gunAmmo GetPlayerAmmo(playerid);
            if(
gunID != && gunAmmo != 0)
            {
                
RemovePlayerWeaponEx(playeridgunID);
                
PlayerInfo[playerid][pInvWeapon][level] = gunID;
                
PlayerInfo[playerid][pInvAmmo][level] = gunAmmo;
                new 
gunname[100];
                
GetWeaponName(gunIDgunnamesizeof(gunname));
                
format(stringsizeof(string), "You put %s in your inventory."gunname);
                
SendClientMessage(playeridGREYstring);
                
PlayerInfo2[ReduceTime][playerid] = 2;
                return 
1;
            }
            else
            {
                
SendClientMessage(playeridGREY"You don't have a gun to put in!");
                return 
1;
            }
        }
        return 
1;
    } 



Re: Re : Function is not implemented. - seanny - 01.03.2013

Quote:
Originally Posted by yusei
Посмотреть сообщение
PHP код:
if(!strcmp(cmdtext"/putgun"true))
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerLogged[playerid] == 0)
            {
                
SendClientMessage(playeridLIGHTRED"* You need to login first!");
                return 
1;
            }
            if(
PlayerInfo2[Hospitalized][playerid] > 0)
            {
                
SendClientMessage(playeridLIGHTRED"* Cannot do this right now!");
                return 
1;
            }
            if(
PlayerInfo2[ReduceTime][playerid] > 0)
            {
                
format(stringsizeof(string), "* You need to wait %d seconds to type this command."PlayerInfo2[ReduceTime][playerid]);
                
SendClientMessage(playeridLIGHTREDstring);
            }
            if(
GetPlayerPing(playerid) >= 700)
            {
                
SendClientMessage(playeridGREY"Your ping is too high to do this command.");
                return 
1;
            }
            if(
PlayerInfo2[ReduceTime][playerid] > 0)
            {
                
format(stringsizeof(string), " Please wait %d seconds to do this command."PlayerInfo2[ReduceTime][playerid]);
                
SendClientMessage(playeridGREYstring);
                return 
1;
            }
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridWHITE"USAGE: /putgun [Slot]");
                
SendClientMessage(playeridWHITE"Hint: Check /weapons (/weps) to see all used and unused slots.");
                return 
1;
            }
            new 
level;
            
level strval(tmp);
            new 
gunID GetPlayerWeapon(playerid);
            new 
gunAmmo GetPlayerAmmo(playerid);
            if(
gunID != && gunAmmo != 0)
            {
                
RemovePlayerWeaponEx(playeridgunID);
                
PlayerInfo[playerid][pInvWeapon][level] = gunID;
                
PlayerInfo[playerid][pInvAmmo][level] = gunAmmo;
                new 
gunname[100];
                
GetWeaponName(gunIDgunnamesizeof(gunname));
                
format(stringsizeof(string), "You put %s in your inventory."gunname);
                
SendClientMessage(playeridGREYstring);
                
PlayerInfo2[ReduceTime][playerid] = 2;
                return 
1;
            }
            else
            {
                
SendClientMessage(playeridGREY"You don't have a gun to put in!");
                return 
1;
            }
        }
        return 
1;
    } 
Could you tell me what was wrong in my code?


Re : Function is not implemented. - yusei - 01.03.2013

Yes Sur

Код:
if(PlayerInfo2[ReduceTime][playerid] > 0)
            {
                format(string, sizeof(string), "* You need to wait %d seconds to type this command.", PlayerInfo2[ReduceTime][playerid]);
                SendClientMessage(playerid, LIGHTRED, string);

           } // bracket  missing

            if(GetPlayerPing(playerid) >= 700)
            {
                SendClientMessage(playerid, GREY, "Your ping is too high to do this command.");
                return 1;
            }



Re: Function is not implemented. - DaRk_RaiN - 01.03.2013

You were missing one bracket (the first one didn't have a matching close)


Re: Function is not implemented. - seanny - 01.03.2013

Okay thanks.

Moderators, Lock and Archive.