Quote:
Originally Posted by ipsBruno
Nгo testei, mas dб pra fazer de vбrios jeitos
pawn Код:
#if !defined MAX_HOUSES
#define MAX_HOUSES 500
#endif
public OnPlayerConnect(playerid) {
SetTimer("AtualizarMapa", 1000, true, "i", playerid); }
public AtualizarMapa(i);
public AtualizarMapa(i) {
for(new c ; c != MAX_HOUSES ; c++) {
if( CasaInfo[c][Venda]) { SetPlayerMapIcon( i, c, CasaInfo[c][PickupX], CasaInfo[c][PickupY],CasaInfo[c][PickupZ], 32, 0, MAPICON_GLOBAL ); } else { RemovePlayerMapIcon( i, c ); } }
return true;
}
|
Funcionou porйm.. todas as casas tao com o mapicon de id 32 e meu gamemode apontou os seguintes avisos:
number of arguments does not match definition > SetTimer("AtualizarMapa", 1000, true, "i", playerid);
old style prototypes used with optional semicolumns > public AtualizarMapa(i);