07.08.2014, 19:44
Код:
[2014.08.07 <> 22:17:00] [debug] Run time error 4: "Array index out of bounds" [2014.08.07 <> 22:17:00] [debug] Accessing element at index 25 past array upper bound 24 [2014.08.07 <> 22:17:00] [debug] AMX backtrace: [2014.08.07 <> 22:17:00] [debug] #0 00075754 in ?? (0x00000001, 0xff8000ff, 0x002d7d18) from LVG.amx [2014.08.07 <> 22:17:00] [debug] #1 00075178 in public OnDialogResponse (0x00000000, 0x0000040b, 0x00000001, 0xffffffff, 0x002d3f24) from LVG.amx
pawn Код:
gInfo[0][gBank] += rksm; // well
GiveMoney(playerid, -rksm); // well
new df[60],sd[60]; // well
format(df,60,"You have successfully put~n~~p~%i ~w~$ to GangBank!",rksm); // well
format(sd,60,"[gang] %s just put %i $ to GangBank!",PlayerName(playerid), rksm); // well
SPMB(playerid, df); // well
printf("%s just put %i $ to GanBank",PlayerName(playerid),rksm); // well
SendMessageToGang(1,COLOR_ORANGE,sd); // CRASH!
// now the stock
stock SendMessageToGang(gangid, color, message[])
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(Gang[i] == gangid)
{
SCM(i,color,message);
}
}
return 1;
}

