array index out of bounds Error.
#1

Hello,
i have this error:

Код:
: error 032: array index out of bounds (variable "gangname")
This is my code:

Код:
dcmd_makegang(playerid, params[])
{
    new gangname[MAX_GANG_NAME+1];
    if(sscanf(params, "z", gangname))
    return SendClientMessage(playerid, COLOR_GREY, "USAGE: /makegang [gangname]");

	if(PlayerInfo[playerid][pLevel] >= 10)
	{
		new string[92];
		format(string, 92, "%s Has created the gang: %s And is Recruiting!", Playername[playerid], params);
		SendClientMessageToAll(COLOR_RED, string);
		CreateGang(gangname[MAX_GANG_NAME+1], Playername[playerid]);
	}
	else
	{
	    SendClientMessage(playerid, COLOR_RED, "You need Minimum of Level 10 to create a Gang");
	}
	return 1;
}
iam using this gang system:

https://sampforum.blast.hk/showthread.php?tid=72784

Please somebody help me..
Reply


Messages In This Thread
array index out of bounds Error. - by Gforcez - 15.07.2010, 14:16
Re: array index out of bounds Error. - by armyoftwo - 15.07.2010, 14:25
Re: array index out of bounds Error. - by Gforcez - 15.07.2010, 14:28
Re: array index out of bounds Error. - by MadeMan - 15.07.2010, 14:45
Re: array index out of bounds Error. - by Gforcez - 15.07.2010, 16:08
Re: array index out of bounds Error. - by MadeMan - 15.07.2010, 16:09
Re: array index out of bounds Error. - by Gforcez - 15.07.2010, 17:00
Re: array index out of bounds Error. - by [HUN]Jaki - 15.07.2010, 17:39
Re: array index out of bounds Error. - by [HiC]TheKiller - 15.07.2010, 20:11

Forum Jump:


Users browsing this thread: 2 Guest(s)