[Ajuda] Erro
#1

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б.
Reply
#2

Tente...
PHP код:
enum Infos
{
AdminLevel
};
new 
PlayerInfo[MAX_PLAYERS][Infos];

stock SetPlayerInfos(pID
{
new 
Directory[200];
format(Directorysizeof(Directory), "users/%s.ini"Nome(pID));
PlayerInfo[pID][AdminLevel] = dini_Int(Directory"AdminLvl");
return 
1;

Reply
#3

Ahhh, que burro eu, rsrsrs. Muito obrigado, funcionou. +rep
Reply
#4

Quote:
Originally Posted by Kyl3
Посмотреть сообщение
Ahhh, que burro eu, rsrsrs. Muito obrigado, funcionou. +rep
Ninguem Nasce Sabendo '-'
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)