12.05.2013, 22:34
(
Последний раз редактировалось feliphemort; 12.05.2013 в 23:16.
)
pawn Код:
error 028: invalid subscript (not an array or too many subscripts): "NumHouses"
error 017: undefined symbol "i"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
pawn Код:
forward AtualizarCasa();
public AtualizarCasa()
{
new NumHouses, String[26], Stringg[26];
for (new i; i < MAX_HOUSESPERPLAYER; i++)
{
if(APlayerData[i][Houses][i] != 0) NumHouses++;
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;
}