(57292):error 032: array index out of bounds (variable "PlayerInfo") (57293)error 032: array index out of bounds (variable "PlayerInfo") (57294)error 032: array index out of bounds (variable "PlayerInfo") (57295)error 032: array index out of bounds (variable "PlayerInfo")
(57292)PlayerInfo[MAX_PLAYERS][pJailTime] = minutes*60; (57293)PlayerInfo[MAX_PLAYERS][pJailed] = 4; (57294)format(PlayerInfo[MAX_PLAYERS][pPrisonReason], 64, "[OOC][PRISONACC] %s", reason); (57295)format(PlayerInfo[MAX_PLAYERS][pPrisonedBy], 24, "%s", GetPlayerNameEx(playerid));
PlayerInfo[10][pJailTime] = minutes*60;
No, don't use MAX_PLAYERS, use playerid instead....
For example if you want to jail player 10 you'll do: Код:
PlayerInfo[10][pJailTime] = minutes*60; |