Can someone help with three compilation errors much appreciated
#1

pawn Код:
C:\Users\James\Desktop\mrp\gamemodes\MSRP.pwn(43620) : error 017: undefined symbol "GivePlayerGun"
C:\Users\James\Desktop\mrp\gamemodes\MSRP.pwn(43637) : error 017: undefined symbol "GivePlayerGun"
C:\Users\James\Desktop\mrp\gamemodes\MSRP.pwn(43654) : error 021: symbol already defined: "cmd_joingang"
C:\Users\James\Desktop\mrp\gamemodes\MSRP.pwn(87583) : warning 203: symbol is never used: "GetPizzaDistance"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
pawn Код:
These are the errors, relating to this command;

CMD:joingang(playerid, params[])
{
        if(IsPlayerConnected(playerid))
        {
            if(!IsPlayerInRangeOfPoint(playerid,5.0,2523.27, -1679.39, 15.49) && !IsPlayerInRangeOfPoint(playerid,5.0,1994.14, -1115.61, 26.77))
            {
                SendClientMessage(playerid, COLOR_GREY, "   You must be at Grove Street / Glen Park to join a public gang !");
                return 1;
            }
            if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0 && PlayerInfo[playerid][pFMember] == 255)
            {
                if(IsPlayerInRangeOfPoint(playerid,5.0,2523.27, -1679.39, 15.49)) //grove
                {
                    new family = 0; //grove family number
                    PlayerInfo[playerid][pFMember] = family;
                    PlayerInfo[playerid][pRank] = 1;
                    new rand = 0+random(2);
                    new skin;
                    if(rand == 0) { skin = 105; }
                    if(rand == 1) { skin = 106; }
                    if(rand == 2) { skin = 107; }
                    SetPlayerSkin(playerid, skin);
                    PlayerInfo[playerid][pModel] = skin;
                    FamilyInfo[family][FamilyMembers] ++;
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have joined Grove Street Families, you can now type /f to communicate with other gang members, use /help for other useful information.");
                }
                else if(IsPlayerInRangeOfPoint(playerid,5.0,1994.14, -1115.61, 26.77)) //ballas
                {
                    new family = 1; //ballas family number
                    PlayerInfo[playerid][pFMember] = family;
                    PlayerInfo[playerid][pRank] = 1;
                    new rand = 0+random(2);
                    new skin;

                    if(rand == 0) { skin = 102; }
                    if(rand == 1) { skin = 103; }
                    if(rand == 2) { skin = 104; }
                    SetPlayerSkin(playerid, skin);
                    PlayerInfo[playerid][pModel] = skin;
                    FamilyInfo[family][FamilyMembers] ++;
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have joined Glen Park Ballas, you can now type /f to communicate with other gang members, use /help for other useful information.");
                }
                SaveFamilies();
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "   You are already in a Faction / Family !");
                return 1;
            }
        }
        return 1;
    }
Please help
Reply
#2

error 017: undefined symbol "GivePlayerGun"
Error 17 looks to be that your symbol isnt defined in the script.

error 021: symbol already defined: "cmd_joingang
Error 21 Looks like it is already defined, so remove any extra defining.

warning 203 (which you can ignore, but i recommend fixing it)
Is that the GetPizzaDistance is never used.

Hope this helps!
Reply
#3

Change GiveplayerGun To GivePlayerWeapon
Reply
#4

PM this account and i will help. I am good at scripting and know how to do that,
Reply
#5

have you included zcmd in your includes list ?
pawn Код:
#include <zcmd>
For the first two errors its GivePlayerWeapon not GivePlayerGun so rectify that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)