[Ajuda] Warning no comando /R - Rбdio
#1

Entгo galera, criei o comando /r para que os players possam falar entre os players de sua org .
Sу que da dando um Warning que eu nгo consigo resolver .

pawn Код:
C:\Users\rCr\Desktop\samp03x_svr_R1-2_win32\gamemodes\Untitled.pwn(654) : warning 219: local variable "Texto" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

1 Warning.
pawn Код:
CMD:r(playerid, params [])
{
    new
        Str[120],
        Nome[25],
        Texto[120]
    ;

    if (sscanf(params, "s[120]", Texto))
    {
        SendClientMessage(playerid, Branco, "Use: /r(бdio) [ Texto ]");
    }
    else
    {
        GetPlayerName(playerid, Nome, 25);
        format(Str, sizeof(Str), "CHAT -> %s Diz: {88AA88}%s", Nome, Texto);

        new orgid = rCr[playerid][Organizacao] ;
        new Cor = GetPlayerColor(playerid);

        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && rCr[i][Organizacao] == orgid) SendClientMessage(i, Cor, Str);
        }
    }
    return 1;
}
Alguйm sabe o por que disso ?
Reply


Messages In This Thread
Warning no comando /R - Rбdio - by rCr - 30.03.2013, 01:29
Respuesta: Warning no comando /R - Rбdio - by Pedro Pawno - 30.03.2013, 01:32
Re: Warning no comando /R - Rбdio - by Jefferson Santos - 30.03.2013, 01:33
Re: Warning no comando /R - Rбdio - by Gii - 30.03.2013, 01:36
Re: Warning no comando /R - Rбdio - by rCr - 30.03.2013, 01:37
Re: Warning no comando /R - Rбdio - by smiiir - 30.03.2013, 01:37
Re: Warning no comando /R - Rбdio - by Gii - 30.03.2013, 01:39
Re: Warning no comando /R - Rбdio - by rCr - 30.03.2013, 01:46

Forum Jump:


Users browsing this thread: 6 Guest(s)