#1

Hello I am getting a few errors when inputting information

Код:
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(1901) : error 017: undefined symbol "RPN"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(1902) : error 017: undefined symbol "SendRobberyMessage"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(1903) : error 017: undefined symbol "SendCopMessage"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(1921) : error 017: undefined symbol "IsACop"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(1925) : error 017: undefined symbol "IsACop"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(1928) : error 017: undefined symbol "GiveDodMoney"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(2082) : error 017: undefined symbol "IsPlayerLoggedIn"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(2122) : error 017: undefined symbol "ResetDodWeapons"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(2664) : error 017: undefined symbol "split"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(2745) : error 017: undefined symbol "IsPlayerLoggedIn"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(2750) : error 017: undefined symbol "RPNU"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(2777) : error 017: undefined symbol "SaveDodAmmo"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(3044) : error 017: undefined symbol "SaveToys"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(3061) : error 017: undefined symbol "RPNU"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(3370) : error 017: undefined symbol "LoadToys"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(3383) : error 017: undefined symbol "RPN"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(3387) : warning 216: nested comment
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(3407) : warning 216: nested comment
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(3411) : error 017: undefined symbol "RPN"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(3412) : error 017: undefined symbol "SendAdminMessage"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(3464) : error 017: undefined symbol "split"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(3475) : error 017: undefined symbol "GT"
C:\Users\Alex\Desktop\Servers\Samp\IBS\gamemodes\IBS.pwn(3476) : error 017: undefined symbol "GT"
pawn Код:
CMD:v(playerid, params[])
{
    new bizid, string[256], input, name[62];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not an authorized to use this command.");
    if(!aDuty[playerid] && PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, COLOR_GREY, "You are not on Admin Duty.");
    if(sscanf(params, "s[32]", params))
    {
        SendClientMessage(playerid, USAGE, "[Usage]: /v [option] [bizid]");
        SendClientMessage(playerid, COLOR_GREY, "OPTIONS: buy | park | scrap | sell | find | bizname");
        return 1;
    }
    if(!strcmp(params, "buy", true, 5))
    {
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(!IsPlayerInRangeOfPoint(playerid, 2, 2132.0168,-1150.0376,24.2036)  && !IsPlayerInRangeOfPoint(playerid, 2, 1702.5165,-1471.6949,13.5469))
    return SendClientMessage(playerid, COLOR_GREY, "You are not near the vehicles dealership.");
    if(PlayerInfo[playerid][vModel] && PlayerInfo[playerid][vVModel])
    {
        format(string, sizeof(string), "You already own vehicles ID %d and %d.", PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVVeh]);
        SendClientMessage(playerid, COLOR_GREY, string);
        return 1;
    }
    else SSSShowDialog(playerid, 10);
    }
    else if(!strcmp(params, "park", true, 8))
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle.");
    // Family Vehicles
    if(IsFamVehicle(GetPlayerVehicleID(playerid)) && Fam[GetPlayerVehicleID(playerid)] == PlayerInfo[playerid][pFam])
    {
        new idx = PlayerInfo[playerid][pFam], veh = GFVS(GetPlayerVehicleID(playerid));

        GetVehiclePos(GetPlayerVehicleID(playerid), FamInfo[idx][fVehCoX][veh], FamInfo[idx][fVehCoY][veh], FamInfo[idx][fVehCoZ][veh]);
        GetVehicleZAngle(GetPlayerVehicleID(playerid), FamInfo[idx][fVehRot][veh]);
        if(FamInfo[idx][fVehType][veh])
        {
            DestroyVehicle(FamInfo[idx][fVeh][veh]);
        }
        FamInfo[idx][fVeh][veh] = CreateVehicle(FamInfo[idx][fVehType][veh], FamInfo[idx][fVehCoX][veh], FamInfo[idx][fVehCoY][veh], FamInfo[idx][fVehCoZ][veh], FamInfo[idx][fVehRot][veh], FamInfo[idx][fVehCol1][veh], FamInfo[idx][fVehCol2][veh], 1200);
        ChangeVehicleColor(FamInfo[idx][fVeh][veh], FamInfo[idx][fVehCol1][veh], FamInfo[idx][fVehCol2][veh]);
        SendClientMessage(playerid, COLOR_GREY, " You have parked your family vehicle, it will always spawn here until you park it somewhere else.");
    }
    // Owned Vehicles
    if(GetPlayerVehicleID(playerid) != PlayerInfo[playerid][pVeh] && GetPlayerVehicleID(playerid) != PlayerInfo[playerid][pVVeh]) return SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle you can park.");
    SendClientMessage(playerid, COLOR_GREY, " You have parked your vehicle, it will always spawn here until you park it somewhere else.");
    GiveDodMoney(playerid, -5000);
    if(PlayerInfo[playerid][pMoney] < 5000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money to park your car.($5000)");
    if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pVeh])
    {
        for(new i=0; i<14; i++)
        {
            PlayerInfo[playerid][pVehMod][i] = GetVehicleComponentInSlot(PlayerInfo[playerid][pVeh], i);
        }
        GetVehiclePos(PlayerInfo[playerid][pVeh],PlayerInfo[playerid][vX], PlayerInfo[playerid][vY], PlayerInfo[playerid][vZ]);
        GetVehicleZAngle(PlayerInfo[playerid][pVeh],PlayerInfo[playerid][vA]);
        DestroyVehicle(PlayerInfo[playerid][pVeh]);
        DestroyObject(GetPVarInt(playerid, "neon"));
        DestroyObject(GetPVarInt(playerid, "neon1"));
        DestroyObject(GetPVarInt(playerid, "neon2"));
        DestroyObject(GetPVarInt(playerid, "neon3"));
        DestroyObject(GetPVarInt(playerid, "neon4"));
        DestroyObject(GetPVarInt(playerid, "neon5"));
        DestroyObject(GetPVarInt(playerid, "neon6"));
        DestroyObject(GetPVarInt(playerid, "neon7"));
        DestroyObject(GetPVarInt(playerid, "neon8"));
        DestroyObject(GetPVarInt(playerid, "neon9"));
        DestroyObject(GetPVarInt(playerid, "neon10"));
        DestroyObject(GetPVarInt(playerid, "neon11"));
        DestroyObject(GetPVarInt(playerid, "nb1"));
        DestroyObject(GetPVarInt(playerid, "nb2"));
        DestroyObject(GetPVarInt(playerid, "nb3"));
        DestroyObject(GetPVarInt(playerid, "nb4"));
        DestroyObject(GetPVarInt(playerid, "nb5"));
        DestroyObject(GetPVarInt(playerid, "nb6"));
        topened[playerid] = 0;
        neon[playerid] = 1;
        PlayerInfo[playerid][pVeh] = CreateVehicle(PlayerInfo[playerid][vModel], PlayerInfo[playerid][vX], PlayerInfo[playerid][vY], PlayerInfo[playerid][vZ],PlayerInfo[playerid][vA],PlayerInfo[playerid][vC1],PlayerInfo[playerid][vC2], 1200);
        PlayerInfo[playerid][pVehVW] = GetPlayerVirtualWorld(playerid);
        SetVehicleVirtualWorld(PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVehVW]);
        LinkVehicleToInterior(PlayerInfo[playerid][pVeh], GetPlayerInterior(playerid));
        ChangeVehiclePaintjob(PlayerInfo[playerid][pVeh], PlayerInfo[playerid][vPJ]);
        for(new i=0; i<14; i++)
        {
            AddVehicleComponent(PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVehMod][i]);
        }
    }
Reply
#2

No I was converting it. All those Undifined errors are defined. THere is something within that code causing all those to become undefined
Reply
#3

You're missing the closing bracket at the end of your command.
Reply
#4

Show any of those stocks
Reply
#5

as PowerPC603 said

corrected code

pawn Код:
CMD:v(playerid, params[])
{
    new bizid, string[256], input, name[62];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not an authorized to use this command.");
    if(!aDuty[playerid] && PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, COLOR_GREY, "You are not on Admin Duty.");
    if(sscanf(params, "s[32]", params))
    {
        SendClientMessage(playerid, USAGE, "[Usage]: /v [option] [bizid]");
        SendClientMessage(playerid, COLOR_GREY, "OPTIONS: buy | park | scrap | sell | find | bizname");
        return 1;
    }
    if(!strcmp(params, "buy", true, 5))
    {
        if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
        if(!IsPlayerInRangeOfPoint(playerid, 2, 2132.0168,-1150.0376,24.2036)  && !IsPlayerInRangeOfPoint(playerid, 2, 1702.5165,-1471.6949,13.5469)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the vehicles dealership.");
        if(PlayerInfo[playerid][vModel] && PlayerInfo[playerid][vVModel])
        {
        format(string, sizeof(string), "You already own vehicles ID %d and %d.", PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVVeh]);
        SendClientMessage(playerid, COLOR_GREY, string);
        return 1;
        }
        else SSSShowDialog(playerid, 10);
    }
    else if(!strcmp(params, "park", true, 8))
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle.");
        // Family Vehicles
        if(IsFamVehicle(GetPlayerVehicleID(playerid)) && Fam[GetPlayerVehicleID(playerid)] == PlayerInfo[playerid][pFam])
        {
            new idx = PlayerInfo[playerid][pFam], veh = GFVS(GetPlayerVehicleID(playerid));
            GetVehiclePos(GetPlayerVehicleID(playerid), FamInfo[idx][fVehCoX][veh], FamInfo[idx][fVehCoY][veh], FamInfo[idx][fVehCoZ][veh]);
            GetVehicleZAngle(GetPlayerVehicleID(playerid), FamInfo[idx][fVehRot][veh]);
            if(FamInfo[idx][fVehType][veh])
            {
                DestroyVehicle(FamInfo[idx][fVeh][veh]);
            }
        }
        FamInfo[idx][fVeh][veh] = CreateVehicle(FamInfo[idx][fVehType][veh], FamInfo[idx][fVehCoX][veh], FamInfo[idx][fVehCoY][veh], FamInfo[idx][fVehCoZ][veh], FamInfo[idx][fVehRot][veh], FamInfo[idx][fVehCol1][veh], FamInfo[idx][fVehCol2][veh], 1200);
        ChangeVehicleColor(FamInfo[idx][fVeh][veh], FamInfo[idx][fVehCol1][veh], FamInfo[idx][fVehCol2][veh]);
        SendClientMessage(playerid, COLOR_GREY, " You have parked your family vehicle, it will always spawn here until you park it somewhere else.");
    }
    // Owned Vehicles
    if(GetPlayerVehicleID(playerid) != PlayerInfo[playerid][pVeh] && GetPlayerVehicleID(playerid) != PlayerInfo[playerid][pVVeh]) return SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle you can park.");
    SendClientMessage(playerid, COLOR_GREY, " You have parked your vehicle, it will always spawn here until you park it somewhere else.");
    GiveDodMoney(playerid, -5000);
    if(PlayerInfo[playerid][pMoney] < 5000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money to park your car.($5000)");
    if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pVeh])
    {
        for(new i=0; i<14; i++)
        {
            PlayerInfo[playerid][pVehMod][i] = GetVehicleComponentInSlot(PlayerInfo[playerid][pVeh], i);
        }
        GetVehiclePos(PlayerInfo[playerid][pVeh],PlayerInfo[playerid][vX], PlayerInfo[playerid][vY], PlayerInfo[playerid][vZ]);
        GetVehicleZAngle(PlayerInfo[playerid][pVeh],PlayerInfo[playerid][vA]);
        DestroyVehicle(PlayerInfo[playerid][pVeh]);
        DestroyObject(GetPVarInt(playerid, "neon"));
        DestroyObject(GetPVarInt(playerid, "neon1"));
        DestroyObject(GetPVarInt(playerid, "neon2"));
        DestroyObject(GetPVarInt(playerid, "neon3"));
        DestroyObject(GetPVarInt(playerid, "neon4"));
        DestroyObject(GetPVarInt(playerid, "neon5"));
        DestroyObject(GetPVarInt(playerid, "neon6"));
        DestroyObject(GetPVarInt(playerid, "neon7"));
        DestroyObject(GetPVarInt(playerid, "neon8"));
        DestroyObject(GetPVarInt(playerid, "neon9"));
        DestroyObject(GetPVarInt(playerid, "neon10"));
        DestroyObject(GetPVarInt(playerid, "neon11"));
        DestroyObject(GetPVarInt(playerid, "nb1"));
        DestroyObject(GetPVarInt(playerid, "nb2"));
        DestroyObject(GetPVarInt(playerid, "nb3"));
        DestroyObject(GetPVarInt(playerid, "nb4"));
        DestroyObject(GetPVarInt(playerid, "nb5"));
        DestroyObject(GetPVarInt(playerid, "nb6"));
        topened[playerid] = 0;
        neon[playerid] = 1;
        PlayerInfo[playerid][pVeh] = CreateVehicle(PlayerInfo[playerid][vModel], PlayerInfo[playerid][vX], PlayerInfo[playerid][vY], PlayerInfo[playerid][vZ],PlayerInfo[playerid][vA],PlayerInfo[playerid][vC1],PlayerInfo[playerid][vC2], 1200);
        PlayerInfo[playerid][pVehVW] = GetPlayerVirtualWorld(playerid);
        SetVehicleVirtualWorld(PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVehVW]);
        LinkVehicleToInterior(PlayerInfo[playerid][pVeh], GetPlayerInterior(playerid));
        ChangeVehiclePaintjob(PlayerInfo[playerid][pVeh], PlayerInfo[playerid][vPJ]);
        for(new i=0; i<14; i++)
        {
            AddVehicleComponent(PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVehMod][i]);
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)