[Ajuda] 9 Warnings [Urgente]
#6

Bem conseguir resolver 4 Warnings mais os

pawn Код:
C:\Users\Cliente\Desktop\BPG\BPG\BPG\gamemodes\bsp.pwn(25150) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Cliente\Desktop\BPG\BPG\BPG\gamemodes\bsp.pwn(44467) : warning 219: local variable "Nome" shadows a variable at a preceding level
C:\Users\Cliente\Desktop\BPG\BPG\BPG\gamemodes\bsp.pwn(62281) : warning 219: local variable "xx" shadows a variable at a preceding level
C:\Users\Cliente\Desktop\BPG\BPG\BPG\gamemodes\bsp.pwn(62281) : warning 219: local variable "yy" shadows a variable at a preceding level
C:\Users\Cliente\Desktop\BPG\BPG\BPG\gamemodes\bsp.pwn(62281) : warning 219: local variable "zz" shadows a variable at a preceding level
nao consegui '-'

vo posta as linhas

pawn Код:
Essa e a que da os Warnings: stock AddFlitsPaal(playerid, modelid, Float:xx, Float:yy, Float:zz, radius, speed)
{
    new fine[MAX_PLAYERS];
    new str[256];

    if(objectcreated!=maxobject)
    {
        CreateObject(modelid, xx, yy, zz, 0.0, 0.0, 10);
        objectcreated++;
    }
    if((distance1[playerid])>speed)
    {
        if(IsPlayerInCircle(playerid, xx, yy, radius)  && GetPlayerState(playerid)== PLAYER_STATE_DRIVER)
        {
            fine[playerid]=((distance1[playerid]*17/10)-speed);
            GivePlayerMoney(playerid, -1000);
            format(str,sizeof(str), "[- RADAR -] O Limite de velocidade й de %d KM/H Vocк Passou a %d KM/H e foi multado!",speed, distance1[playerid] ,fine[playerid]);
            SendClientMessage(playerid, 0xFF6A08AA, str);
            PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
        }
    }
}
pawn Код:
if(strcmp(cmd, "/tirarbombas", true) == 0)
    {
        if(IsAEx(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /tirarbombas [id]");
                return 1;
            }
            linha:new Nome[MAX_PLAYER_NAME], Nome2[MAX_PLAYER_NAME];
            GetPlayerName(playerid, Nome2, sizeof(Nome2));
            giveplayerid = ReturnUser(tmp);
            GetPlayerName(giveplayerid, Nome, sizeof(Nome));
            format(string, sizeof(string), "Vocк retirou as bombas do terrorista %s", Nome);
            SendClientMessage(playerid, COLOR_YELLOW, string);
            format(string, sizeof(string), "Oficial %s retirou suas bombas por 10 minutos", Nome2);
            SendClientMessage(giveplayerid, COLOR_YELLOW, string);
            format(string, sizeof(string), "%s retirou as bombas do terrorista %s", Nome2, Nome);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            SemBombas[giveplayerid] = 1;
            SetTimerEx("VoltarBombas", 600000, false, "i", giveplayerid);
            return 1;
        }
        return 1;
    }
pawn Код:
if(strcmp("/bdd", cmdtext, true, 10) == 0)
    {
        ResetPlayerWeapons(playerid);
        Linha:new name[MAX_PLAYER_NAME], string[100];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "[Teletransporte] %s foi para o Bairro do Death Match(DM) (/bdd)", name );
        SendClientMessageToAll(COLOR_GRAD1, string);

            SetPlayerPos(playerid,1554.7645,-1246.8375,279.3455);
            SetPlayerInterior(playerid,0);
            ResetPlayerWeapons(playerid),GivePlayerWeapon(playerid,24,999),GivePlayerWeapon(playerid,31,999),SetPlayerHealth(playerid,100),SetPlayerArmour(playerid,100);
            SendClientMessage(playerid,COLOR_YELLOW,"Bem-Vindo ao Bairro do Death Match(DM)! (by .....)");

        return 1;
    }
Reply


Messages In This Thread
9 Warnings [Urgente] - by .:LucasxD:. - 02.08.2012, 22:01
Re: 9 Warnings [Urgente] - by .FuneraL. - 02.08.2012, 22:03
Re: 9 Warnings [Urgente] - by .:LucasxD:. - 03.08.2012, 01:29
Re: 9 Warnings [Urgente] - by LeMoi - 03.08.2012, 07:38
Re: 9 Warnings [Urgente] - by andmeida10 - 03.08.2012, 09:54
Re: 9 Warnings [Urgente] - by .:LucasxD:. - 03.08.2012, 16:51
Re: 9 Warnings [Urgente] - by .:LucasxD:. - 03.08.2012, 23:18
Re: 9 Warnings [Urgente] - by Victor' - 03.08.2012, 23:36

Forum Jump:


Users browsing this thread: 3 Guest(s)