[Ajuda] error 032: array index out of bounds (variable "CasaInfo")
#1

C:\Users\Natan\Desktop\Server\gamemodes\WERP.pwn(5 7607) : error 032: array index out of bounds (variable "CasaInfo")
C:\Users\Natan\Desktop\Server\gamemodes\WERP.pwn(5 7727) : error 032: array index out of bounds (variable "CasaInfo")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Код:
	if(!strcmp(cmdtext, "/pb368", true))
	{
		if(!strcmp(CasaInfo[368][Proprietario], PlayerName(playerid), true) || //LINHA 57607
			!strcmp(CasaInfo[368][Morador], PlayerName(playerid), true) ||
			!strcmp(CasaInfo[368][Morador2], PlayerName(playerid), true) ||
			!strcmp(CasaInfo[368][Morador3], PlayerName(playerid), true))
		{
			SendClientMessage(playerid, COR_AMARELO, "Abrindo o portгo da casa.");
			MoveDynamicObject(casa_ls_id_368, 1373.3564500,-1882.2364500,5.6901000, 3.0);
		}
		else
		{
			SendClientMessage(playerid, COR_ERRO, "Vocк nгo tem permissгo!");
		}
		return 1;
	}
	if(!strcmp(cmdtext, "/pf368", true))
	{
		if(!strcmp(CasaInfo[368][Proprietario], PlayerName(playerid), true) || //LINHA 57727
			!strcmp(CasaInfo[368][Morador], PlayerName(playerid), true) ||
			!strcmp(CasaInfo[368][Morador2], PlayerName(playerid), true) ||
			!strcmp(CasaInfo[368][Morador3], PlayerName(playerid), true))
		{
			SendClientMessage(playerid, COR_AMARELO, "Fechando o portгo da casa.");
			MoveDynamicObject(casa_ls_id_368, 1373.3564500,-1882.2364500,13.6901000, 3.1);
		}
		else
		{
			SendClientMessage(playerid, COR_ERRO, "Vocк nгo tem permissгo!");
		}
		return 1;
	}
Reply


Messages In This Thread
error 032: array index out of bounds (variable "CasaInfo") - by NATANGameron - 05.04.2017, 21:06
Re: error 032: array index out of bounds (variable "CasaInfo") - by MultiKill - 05.04.2017, 21:13
Re: error 032: array index out of bounds (variable "CasaInfo") - by NATANGameron - 05.04.2017, 21:24
Re: error 032: array index out of bounds (variable "CasaInfo") - by MultiKill - 05.04.2017, 21:34

Forum Jump:


Users browsing this thread: 1 Guest(s)