Warnings Overload, Help required.
#1

Warnings Overload


Firstly, I'm getting these warnings on the following line.

Код:
warning 219: local variable "G" shadows a variable at a preceding level
warning 219: local variable "A" shadows a variable at a preceding level
pawn Код:
stock RGBA(R, G, B, A) return ( R * 16777216 ) + ( G * 65536 ) + ( B * 256 ) + A ;
Then, these warnings on the following piece of code.
Код:
C:\Users\Tayyab-PC\Desktop\Server\gamemodes\SG.pwn(3145) : warning 213: tag mismatch
C:\Users\Tayyab-PC\Desktop\Server\gamemodes\SG.pwn(3146) : warning 213: tag mismatch
C:\Users\Tayyab-PC\Desktop\Server\gamemodes\SG.pwn(3147) : warning 213: tag mismatch
C:\Users\Tayyab-PC\Desktop\Server\gamemodes\SG.pwn(3148) : warning 213: tag mismatch
C:\Users\Tayyab-PC\Desktop\Server\gamemodes\SG.pwn(3149) : warning 213: tag mismatch
C:\Users\Tayyab-PC\Desktop\Server\gamemodes\SG.pwn(3150) : warning 213: tag mismatch
C:\Users\Tayyab-PC\Desktop\Server\gamemodes\SG.pwn(3151) : warning 213: tag mismatch
C:\Users\Tayyab-PC\Desktop\Server\gamemodes\SG.pwn(3152) : warning 213: tag mismatch
C:\Users\Tayyab-PC\Desktop\Server\gamemodes\SG.pwn(3153) : warning 213: tag mismatch
C:\Users\Tayyab-PC\Desktop\Server\gamemodes\SG.pwn(3154) : warning 213: tag mismatch
pawn Код:
new PlayerText:SGWelcome[MAX_PLAYERS];
3145-3154
pawn Код:
SGWelcome[playerid] = TextDrawCreate(166.273895, 363.182495, "~y~S~w~tunters_~y~G~w~od");
    TextDrawLetterSize(SGWelcome[playerid], 1.405627, 5.123327);
    TextDrawAlignment(SGWelcome[playerid], 1);
    TextDrawColor(SGWelcome[playerid], -1);
    TextDrawSetShadow(SGWelcome[playerid], 0);
    TextDrawSetOutline(SGWelcome[playerid], 1);
    TextDrawBackgroundColor(SGWelcome[playerid], 255);
    TextDrawFont(SGWelcome[playerid], 1);
    TextDrawSetProportional(SGWelcome[playerid], 1);
    TextDrawSetShadow(SGWelcome[playerid], 0);
then, this on that,
Код:
warning 219: local variable "str" shadows a variable at a preceding level
pawn Код:
if(!success)
    {
        new str[90];
        if(strlen(cmdtext) > 12)
        {
            strmid(str, cmdtext, 0, 12);
            strcat(str, "...");
        }
        else strcat(str, cmdtext);
        format(str,sizeof(str),"The command ~y~%s ~w~does not exist, To see all commands use ~y~/cmds", str);
        PlayerTextDrawSetString(playerid,wrongcmd[playerid],str);
        PlayerTextDrawShow(playerid,wrongcmd[playerid]);
        SetTimerEx("HideWrongTD", 8000, false, "i", playerid);
    }
and finally,
Код:
warning 204: symbol is assigned a value that is never used: "RegisteredPlayers"
pawn Код:
new pRegID[MAX_PLAYERS];
pawn Код:
RegisteredPlayers = pRegID[playerid];

And thanks in advance..
Reply


Messages In This Thread
Warnings Overload, Help required. - by SsHady - 22.12.2016, 09:29
Re: Warnings Overload, Help required. - by oMa37 - 22.12.2016, 09:49
Re: Warnings Overload, Help required. - by Bolex_ - 22.12.2016, 09:54
Re: Warnings Overload, Help required. - by Vince - 22.12.2016, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)