Warning no gm -
Liipiinhow - 04.09.2013
C:\Documents and Settings\Conviidado.AKINAS-E30DEFCE\Meus documentos\Minhas imagens\imprimir\GFB.pwn(16
: warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Conviidado.AKINAS-E30DEFCE\Meus documentos\Minhas imagens\imprimir\GFB.pwn(406) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Conviidado.AKINAS-E30DEFCE\Meus documentos\Minhas imagens\imprimir\GFB.pwn(4125) : warning 219: local variable "string" shadows a variable at a preceding level
-------------------------------------/..../----------------------------------------------------------------------
Linha 168 public RandomMsg()
{
new rand = random(sizeof(Mensagens)); new string[256];
format(string,sizeof(string),Mensagens[rand][0],Mensagens[rand][1],Mensagens[rand][2]);
SendClientMessageToAll(BRANCO,string);
return 1;
}
-------------------------------------/..../----------------------------------------------------------------------
Linha 406 //Criaзгo de Casas
new string[100],stringDono[100];
new Float:PosX,Float:PosY,Float:PosZ;
for(new p=1;p<=dini_Int("Casas.ini","Quantidade");p++)
{
---------------------------------------------/....../-----------------------------------------------------------
Linha 4125 public OnPlayerRequestClass(playerid, classid)
{
new string[256],PlayerName[24];
GetPlayerName(playerid,PlayerName,24);
if(!dini_Exists(udb_encode(PlayerName)))
{
format(string,sizeof(string),"{E3E3E3}Olб %s - {FF0000}Nгo registado\n\n{E3E3E3}Vejo que й novo no servidor\nDigite uma senha para se registrar\nE depois vamos para os tutoriais.",PlayerName);
ShowPlayerDialog(playerid,REGISTRO,DIALOG_STYLE_PA SSWORD,"Registrar",string,"Registrar","Cancelar");
}
else
{
format(string,sizeof(string),"{E3E3E3}Olб, %s - {32CD32}Registrado\n\n{E3E3E3}Basta apenas colocar sua senha e se divertir no servidor",PlayerName);
ShowPlayerDialog(playerid,LOGIN,DIALOG_STYLE_PASSW ORD,"Login",string,"Logar", "Sair");
}
return 1;
}
Re: Warning no gm -
Sti - 04.09.2013
[*Pawn] No começo do Code(AQUI NO FORUM,PRO CODE NÃO BAGUNÇAR) e [*/Pawn] no Final do Code...
PS: Sem os *
Re: Warning no gm -
Coe1 - 04.09.2013
Muda a variбvel "String" para String2 ou qualquer outro nome..
Re: Warning no gm -
PT - 04.09.2013
ou simplesmente retira pq ela ja existe rs
Re: Warning no gm -
Liipiinhow - 04.09.2013
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!' && PlayerInfo[playerid][pCV] >= 1)
{
new sendername[30];
GetPlayerName(playerid, sendername, sizeof(sendername));
new string[800];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Chat do Comando Vermelho] %s (%i): {FFFFFF}%s", sendername, playerid , text[1]);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
Linha 4745
pawn Код:
new sendername[30];
GetPlayerName(playerid, sendername, sizeof(sendername));
new string[800];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Chat do Terceiro Comando Puro] %s (%i): {FFFFFF}%s", sendername, playerid , text[1]);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
Linha >4767
pawn Код:
new sendername[30];
GetPlayerName(playerid, sendername, sizeof(sendername));
new string[800];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Chat dos Amigos dos Amigos] %s (%i): {FFFFFF}%s", sendername, playerid , text[1]);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
pawn Код:
C:\Documents and Settings\Conviidado.AKINAS-E30DEFCE\Meus documentos\Minhas imagens\imprimir\GFB.pwn(4745) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Documents and Settings\Conviidado.AKINAS-E30DEFCE\Meus documentos\Minhas imagens\imprimir\GFB.pwn(4767) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Documents and Settings\Conviidado.AKINAS-E30DEFCE\Meus documentos\Minhas imagens\imprimir\GFB.pwn(4789) : warning 219: local variable "sendername" shadows a variable at a preceding level
Re: Warning no gm -
Russo66 - 04.09.2013
troque todos os sedername por:
PlayerName(playerid)
mais prбtico, coloque no final do game-mode a stock:
pawn Код:
stock PlayerName(playerid)
{
new nomeplayer[MAX_PLAYER_NAME];
GetPlayerName(playerid, nomeplayer, MAX_PLAYER_NAME);
return nomeplayer;
}
Re: Warning no gm -
Coe1 - 04.09.2013
1:
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!' && PlayerInfo[playerid][pCV] >= 1)
{
new rname[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, rname, sizeof(rname));
new rStr[230];
GetPlayerName(playerid, rname, sizeof(rname));
format(rStr, sizeof(rStr), "[Chat do Comando Vermelho] %s (%i): {FFFFFF}%s", rname, playerid , text[1]);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
2:
pawn Код:
new sName[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, sName, sizeof(sName));
new sStr[230];
GetPlayerName(playerid, sName, sizeof(sName));
format(sStr, sizeof(sStr), "[Chat do Terceiro Comando Puro] %s (%i): {FFFFFF}%s", sName, playerid , text[1]);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
3:
pawn Код:
new pName[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, pName, sizeof(pName));
new pStr[230];
GetPlayerName(playerid, pName, sizeof(pName));
format(pStr, sizeof(pStr), "[Chat dos Amigos dos Amigos] %s (%i): {FFFFFF}%s", pName, playerid , text[1]);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
Re: Warning no gm -
Liipiinhow - 04.09.2013
Apareceu mas warning rзrз
Re: Warning no gm -
Coe1 - 04.09.2013
Quais ? '-'
Re: Warning no gm -
Liipiinhow - 04.09.2013
Cara apareceu 1 monte agr,ngc de string agr :/