[Off] (ERROR) array index out of bounds - 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: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Off] (ERROR) array index out of bounds (
/showthread.php?tid=631104)
(ERROR) array index out of bounds -
Johangelo1 - 23.03.2017
como podria solucionar este error?
Код:
error 032: array index out of bounds (variable "InfoEv")
PHP код:
new InfoEv[MAX_PLAYERS];
enum infoEv
{
Vida,Arma,Admin[64]
};
//una de las lineas donde da error
new StrE[50];
format(StrE,sizeof(StrE),"* Admin %s a dado 100 de vida ",EventInfo[Admin]);
SendClientMessageToAll(-1, StrE);
Respuesta: (ERROR) array index out of bounds -
OTACON - 23.03.2017
PHP код:
enum info
{
Vida,
Arma,
Admin[64],
}
new InfoEv[MAX_PLAYERS][info];
new data[50];
format(data,sizeof(data),"* Admin %s a dado 100 de vida ", InfoEv[playerid][Admin] );
SendClientMessageToAll(-1, data);
Respuesta: (ERROR) array index out of bounds -
Johangelo1 - 23.03.2017
EDIT:
solucionado gracias