SA-MP Forums Archive
[Ajuda] [Ajuda] Warning 255 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] [Ajuda] Warning 255 (/showthread.php?tid=542294)



[Ajuda] Warning 255 - DwarD - 18.10.2014

Estou Tento um Warning No Paen Com Esses Warnings
if(strcmp(cmd, "/transferir", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Digite o ID, e em seguida a Quantia em Dinheiro, (apenas nъmeros)");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if(PlayerToPoint(1.5,playerid,2224.1484,-1141.8772,1025.7969) || PlayerToPoint(1.0,playerid,1929.5409,-1785.1664,13.5469) || PlayerToPoint(1.0,playerid,2232.2886,-1162.6107,25.8906) || PlayerToPoint(1.0,playerid,1550.4796,-1669.7039,13.5624) || PlayerToPoint(1.5,playerid,957.4803,-48.7381,1001.1172)
|| PlayerToPoint(1.5,playerid,229.6725,153.8311,1003. 0234) || PlayerToPoint(1.5,playerid,241.0845,115.2740,1003. 218 || PlayerToPoint(1.5,playerid,321.4753,305.5962,999.1 484) || PlayerToPoint(1.5,playerid,-1347.6376,499.9476,11.1953) || PlayerToPoint(1.5, playerid,2308.9492,-14.1523,26.7422) || PlayerToPoint(1.5,playerid,1467.5273, -1782.6521, 13.1987))
{
if(money <= 0)
{
return SendClientMessage(playerid,COLOR_GREY,"Digite um Valor maior que Zero!");
}
if(money > 10000000)
{
return SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode Transferir mais de 10000000 por Vez!");
}
else
{
PlayerInfo[playerid][pConta] -= money;
PlayerInfo[playa][pConta] += money;
format(gstring,sizeof(gstring),"Vocк transferiu R$[%d] Para Conta Bancaria de: %s",money,PlayerName(playa));
SendClientMessage(playerid,COLOR_YELLOW,gstring);
format(gstring, sizeof(gstring), "Seu novo saldo й: R$[%d]",PlayerInfo[playerid][pConta]);
SendClientMessage(playerid,COLOR_YELLOW,gstring);
format(gstring, sizeof(gstring), "ID[%d] Transferiu R$[%d] para sua conta bancaria",playerid,money);
SendClientMessage(playa,COLOR_YELLOW,gstring);
format(gstring, sizeof(gstring), "Seu novo saldo: R$[%d]",PlayerInfo[playa][pConta]);
SendClientMessage(playa,COLOR_YELLOW,gstring);
ShowPlayerDialog(playerid,1125,DIALOG_STYLE_LIST," Banco","Depositar\nSacar\nSaldo\nTransferir","Ok", "Cancelar");
}
}
else
{
return SendClientMessage(playerid,COLOR_GREY,"Vocк nгo estб em um Banco/Caixa!");
}

}
return 1;
}
else //Nova mensagem.
{

}
return 1;//A public OnPlayerCommandText deve sempre retornar valor 1 .
}
O Warning Esta Aki (return 1;//A public OnPlayerCommandText )[

me ajudem por favor dor rep para quem me ajudar