30.03.2013, 01:29
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 .
Alguйm sabe o por que disso ?
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;
}