26.10.2012, 19:58
esse eo Warning ~~>: warning 219: local variable "string" shadows a variable at a preceding level
a linha e essa aqui ~~>: new name[MAX_PLAYER_NAME],string[100];
aqui e todo o comando:~~>
if(strcmp("/bdd", cmdtext, true, 10) == 0)
{
ResetPlayerWeapons(playerid);
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(play erid,24,999),GivePlayerWeapon(playerid,31,999),Set PlayerHealth(playerid,100),SetPlayerArmour(playeri d,100);
SendClientMessage(playerid,COLOR_YELLOW,"Bem-Vindo ao Bairro do Death Match(DM)! (by Wanderson)");
return 1;
}[/FONT]
a linha e essa aqui ~~>: new name[MAX_PLAYER_NAME],string[100];
aqui e todo o comando:~~>
if(strcmp("/bdd", cmdtext, true, 10) == 0)
{
ResetPlayerWeapons(playerid);
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(play erid,24,999),GivePlayerWeapon(playerid,31,999),Set PlayerHealth(playerid,100),SetPlayerArmour(playeri d,100);
SendClientMessage(playerid,COLOR_YELLOW,"Bem-Vindo ao Bairro do Death Match(DM)! (by Wanderson)");
return 1;
}[/FONT]