[Ajuda] Help-Me - 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] Help-Me (
/showthread.php?tid=436827)
Help-Me -
feliphemort - 12.05.2013
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;
}
Re: Help-Me -
feliphemort - 12.05.2013
Alguйm
Re: Help-Me -
Coreia - 12.05.2013
pawn Код:
if(APlayerData[i][Houses][i] != 0) NumHouses++;
Tem uma array a+,na variavel !
Re: Help-Me -
Baiano - 12.05.2013
NumHouses nгo estб definida com Array, estб normal. Coloca:
pawn Код:
new NumHouses[MAX_PLAYERS];
E nessa parte vocк arruma desta forma:
pawn Код:
if(APlayerData[i][Houses][i] != 0) NumHouses[i]++;
Re: Help-Me -
feliphemort - 12.05.2013
Deu certo baiano, vlw mesmo!
Respuesta: Help-Me -
Parka - 12.05.2013
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;
}
xD
Re: Help-Me -
feliphemort - 12.05.2013
Fui testar no servidor, ela sу conta 1 casa sendo que tenho 3.