symbol is assigned a value that is never used: "LS1T"
#10

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Okay then! Make it global variable, assign the ID of the 3D Label to it and add the code you want to destroy it. It'll be fine after that.
Ok so i did it like that:
pawn Код:
new LS1T;

CMD:lockls(playerid, params[])
{
    new string[128];
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pDivision] == 2) || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] >= 5) || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
    {
        SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* All the exits from Los-Santos locked!");
        format(string, sizeof(string), "All the exits from Los-Santos locked by %s ))", GetPlayerNameEx(playerid));
        SetDynamicObjectRot(CheckPointGates[2], 0.00000000,89.69036865,80.17822266);
        CheckPointGateStatus[2] = 1;
        SetDynamicObjectRot(CheckPointGates[3], 0.00000000,269.94769287,82.48538208);
        CheckPointGateStatus[3] = 1;
        //Morha13 Advanced Gates Start - New Gate Text
        LS1T = CreateDynamic3DTextLabel("This is test text!", COLOR_BLUE, 0.00000000,269.94769287,82.48538208, 12);
        //Morha13 Advanced Gates End - New Gate Text
    }
}
and now i have 2 warnings:
Код:
C:\Users\Mor\Downloads\Vas-Rp\gamemodes\VasRpV0.15Alpha.pwn(32364) : warning 213: tag mismatch
C:\Users\Mor\Downloads\Vas-Rp\gamemodes\VasRpV0.15Alpha.pwn(32364) : warning 204: symbol is assigned a value that is never used: "LS1T"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)