SA-MP Forums Archive
Command doesnt excecute - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Command doesnt excecute (/showthread.php?tid=451774)



Command doesnt excecute - thimo - 18.07.2013

Poofed away


Re: Command doesnt excecute - SuperViper - 18.07.2013

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


Re: Command doesnt excecute - thimo - 18.07.2013

How do you use that stuff lol :P


Re: Command doesnt excecute - thimo - 18.07.2013

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?


Re: Command doesnt excecute - SuperViper - 18.07.2013

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



Re: Command doesnt excecute - thimo - 18.07.2013

Fixed it Sry