[Ajuda] Erro - 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] Erro (
/showthread.php?tid=413318)
Erro -
Kyl3 - 04.02.2013
Quote:
enum Infos
{
AdminLevel
}
new PlayerInfo[MAX_PLAYERS][Infos];
stock SetPlayerInfos(pID) {
new Directory[200];
format(Directory, sizeof(Directory), "users/%s.ini", Nome(pID));
PlayerInfo[pID][Infos][AdminLevel] = dini_Int(Directory, "AdminLvl");
return 1;
}
|
Erro: array index out of bounds (variable "PlayerInfo")
ps: novo em pawn.
Grato desde jб.
Re: Erro -
DanDRT - 04.02.2013
Tente...
PHP код:
enum Infos
{
AdminLevel
};
new PlayerInfo[MAX_PLAYERS][Infos];
stock SetPlayerInfos(pID)
{
new Directory[200];
format(Directory, sizeof(Directory), "users/%s.ini", Nome(pID));
PlayerInfo[pID][AdminLevel] = dini_Int(Directory, "AdminLvl");
return 1;
}
Re: Erro -
Kyl3 - 04.02.2013
Ahhh, que burro eu, rsrsrs. Muito obrigado, funcionou. +rep
Re: Erro -
DanDRT - 04.02.2013
Quote:
Originally Posted by Kyl3
Ahhh, que burro eu, rsrsrs. Muito obrigado, funcionou. +rep
|
Ninguem Nasce Sabendo '-'