15.07.2010, 14:16
Hello,
i have this error:
This is my code:
iam using this gang system:
https://sampforum.blast.hk/showthread.php?tid=72784
Please somebody help me..
i have this error:
Код:
: error 032: array index out of bounds (variable "gangname")
Код:
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;
}
https://sampforum.blast.hk/showthread.php?tid=72784
Please somebody help me..

