14.09.2014, 05:50
I get spammed with this errors.
FS_Createbutton
THANKS IN ADVANCE <3 <3
Imma give an +Rep
Code:
[10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x42067c0c, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x421c48d8, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x423215a5, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x4247e272, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x425daf3e, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x42737c0b, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x4284a46c, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x428f8ad2, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x429a7139, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x42a5579f, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x42b03e05, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x42bb246c, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x42c60ad2, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x42d0f139, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x42dbd79f, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x42e6be05, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x42f1a46c, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x42fc8ad2, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44defc9f, 0xc4a2a3d0, 0x415eb2c2, 0x43340000) from buttons.amx [10:03:32] [debug] Run time error 4: "Array index out of bounds" [10:03:32] [debug] Accessing element at index 51 past array upper bound 50 [10:03:32] [debug] AMX backtrace: [10:03:32] [debug] #0 000008e0 in public FS_CreateButton (0x44df9c75, 0xc4a2c754, 0x415a8177, 0x43870000) from buttons.amx
pawn Code:
forward FS_CreateButton(Float:X, Float:Y, Float:Z, Float:Angle);
public FS_CreateButton(Float:X, Float:Y, Float:Z, Float:Angle)
{
new buttonid;
for(buttonid = 1; buttonid <= MAX_BUTTONS; buttonid ++)
if (!ButtonInfo[buttonid][Created])
break;
ButtonInfo[buttonid][ObjectID] = CreateObject(OBJECT,X,Y,Z,0.0,0.0,Angle);
ButtonInfo[buttonid][Pos][0] = X;
ButtonInfo[buttonid][Pos][1] = Y;
ButtonInfo[buttonid][Pos][2] = Z;
ButtonInfo[buttonid][Pos][3] = Angle;
ButtonInfo[buttonid][Moving] = false;
ButtonInfo[buttonid][Created] = true;
for (new playerid = 0; playerid < MAX_PLAYERS; playerid ++)
ButtonInfo[buttonid][Usable][playerid] = true;
return buttonid;
}
Imma give an +Rep