can't fix error 032: array index out of bounds
#1

Код:
enum wnt
{
 	 WeaponNames[ 256 ]
}
new weaponnames[MAX_TEAMS][wnt]= {
{ "- Primary~n- Deagle(100)~n- Thirdly"},
{ "- Primary~n- Secondary~n- Thirdly"},
{ "- Primary~n- Secondary~n- Thirdly"},
{ "- Primary~n- Secondary~n- Thirdly"},
{ "- Primary~n- Secondary~n- Thirdly"},
{ "- Primary~n- Secondary~n- Thirdly"},
{ "- Primary~n- Secondary~n- Thirdly"},
{ "- Primary~n- Secondary~n- Thirdly"},
{ "- Primary~n- Secondary~n- Thirdly"},
{ "- Primary~n- Secondary~n- Thirdly"}
};

// Somewhere in the script
        playerclass[playerid]=1;
	new string[256];
	format(string,sizeof(string),"%s",weaponnames[playerclass[playerid]][wnt]);
	TextDrawSetString(OPRQwnp[playerid],string);
	TextDrawShowForPlayer(playerid,OPRQwnp[playerid]);
Код:
C:\Users\Tadas\Desktop\Gang Wars\gamemodes\SSSGW.pwn(809) : error 032: array index out of bounds (variable "weaponnames")
help ;(
Reply


Messages In This Thread
can't fix error 032: array index out of bounds - by aqu - 19.01.2012, 18:44
Re: can't fix error 032: array index out of bounds - by Vince - 19.01.2012, 19:06
Re: can't fix error 032: array index out of bounds - by aqu - 19.01.2012, 19:12
Re: can't fix error 032: array index out of bounds - by MP2 - 19.01.2012, 19:28
Re: can't fix error 032: array index out of bounds - by aqu - 19.01.2012, 19:31
Re: can't fix error 032: array index out of bounds - by aqu - 19.01.2012, 19:35
Re: can't fix error 032: array index out of bounds - by Tannz0rz - 19.01.2012, 19:43
Re: can't fix error 032: array index out of bounds - by aqu - 19.01.2012, 19:47

Forum Jump:


Users browsing this thread: 2 Guest(s)