Command doesnt excecute
#1

Poofed away
Reply
#2

Run crashdetect and see what it outputs when you run this command.
Reply
#3

How do you use that stuff lol :P
Reply
#4

It gives out this:
Код:
[18:41:37] [debug] Run time error 4: "Array index out of bounds"
[18:41:37] [debug]  Accessing element at index 10 past array upper bound 9
[18:41:37] [debug] AMX backtrace:
[18:41:37] [debug] #0 0000e020 in public cmd_park () from ET.amx
[18:41:37] [debug] #1 native CallLocalFunction () [00471e90] from samp-server.exe
[18:41:37] [debug] #2 00000694 in public OnPlayerCommandText () from ET.amx
[18:41:37] Thimo used:  /park
What does this mean?
Reply
#5

One of your arrays or enums have only 10 indexes (0-9) and you're trying to use the 11th index (10) like this:

pawn Код:
enum e_TestEnum
{
    eTest
}

new TestEnum[10][e_TestEnum];

TestEnum[9][eTest] = 5; // Works fine
TestEnum[10][eTest] = 5; // Out of bounds error
Reply
#6

Fixed it Sry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)