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.
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;
}
CMD:r(playerid, params [])
{
new
Str[120],
Nome[25],
Texto[125]
;
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;
}
CMD:r(playerid, params [])
{
new
Str[120],
Nome[25],
Texto[125]
;
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;
}
CMD:r(playerid, params []) {
new
Str[144],
Nome[20]
;
if (isnull(params))
return SendClientMessage(playerid, Branco, "Use: /r(бdio) [ Texto ]");
GetPlayerName(playerid, Nome, 20);
format(Str, sizeof(Str), "CHAT -> %s Diz: {88AA88}%s", Nome, params);
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 true;
}
CMD:r(playerid, params [])
{
new
xCelulas [ 120 ],
xNome [ 24 ],
xText [ 125 ]
;
if (sscanf(params, "s[120]", xText))
{
SendClientMessage(playerid, Branco, "Use: /r(бdio) [ Texto ]");
}
else
{
GetPlayerName(playerid, xNome, 24);
format(xCelulas, sizeof(xCelulas), "CHAT -> %s Diz: {88AA88}%s", xNome, xText);
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, xCelulas);
}
}
return 1;
}
Dб no mesmo , os dois ai de cima :\
Programador : fala que o text nгo estб sendo usado . |