C:\Users\Lucas Alves\Desktop\BMS\gamemodes\BMS.pwn(387) : error 032: array index out of bounds (variable "PlayerRegistro") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Carregarlogin(playerid) { PlayerTextDrawShow(playerid, PlayerRegistro[playerid][0]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][1]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][2]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][3]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][4]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][5]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][6]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][7]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][8]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][9]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][10]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][11]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][12]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][13]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][14]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][15]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][16]); PlayerTextDrawShow(playerid, PlayerRegistro[playerid][17]); return 1; }
O Index do new PlayerTexto:PlayerRegistro[MAX_PLAYERS][17] ta 17 bota 18 fi, e para de deletar tуpico em que vc recebe ajuda e se alguйm tiver o mesmo problema?
|
Carregarlogin(playerid)
{
for(new i = 0; i < sizeof(PlayerRegistro); i++)
PlayerTextDrawShow(playerid, PlayerRegistro[playerid][i]);
return 1;
}
Tente desta forma:
PHP код:
|