12.05.2013, 23:39
pawn Код:
forward AtualizarCasa();
public AtualizarCasa()
{
new NumHouses[MAX_HOUSESPERPLAYER], String[26], Stringg[26];
for (new i; i < MAX_HOUSESPERPLAYER; i++)
{
if(APlayerData[i][Houses][i] != 0) NumHouses[i]++;
format(String, sizeof(String), "~w~CASAS:", NumHouses[i]);
format(Stringg, sizeof(Stringg), "~r~%i", NumHouses[i]);
TextDrawShowForPlayer(CasaTextDraw[i], String);
TextDrawSetString(CasaTextDraw[i], String);
TextDrawShowForPlayer(CasaTextDraw2[i], Stringg);
TextDrawSetString(CasaTextDraw2[i], Stringg);
}
return true;
}