27.01.2015, 07:29
so, when I start my server with my own created Filterscript, this shows: [09:00:35] [debug] Run time error 5: "Invalid memory access"
[09:00:35] [debug] AMX backtrace:
[09:00:35] [debug] #0 00000288 in ?? (0x00000bbc, 0x00000000, 0x00000000, 0xc7afce00, 0x42af47b2, 0x43ab1148, 0x43af099c, 0xffffffff) from ropex.amx
[09:00:35] [debug] #1 00001a90 in public OnFilterScriptInit () from ropex.amx
code:
please help
[09:00:35] [debug] AMX backtrace:
[09:00:35] [debug] #0 00000288 in ?? (0x00000bbc, 0x00000000, 0x00000000, 0xc7afce00, 0x42af47b2, 0x43ab1148, 0x43af099c, 0xffffffff) from ropex.amx
[09:00:35] [debug] #1 00001a90 in public OnFilterScriptInit () from ropex.amx
code:
pawn Код:
public OnFilterScriptInit()
{
TextDrawUseBox(blind,1);
TextDrawBoxColor(blind,0x000000FF);
TextDrawTextSize(blind,641.000000,10.000000);
TextDrawAlignment(blind,0);
TextDrawBackgroundColor(blind,0x00000000);
TextDrawFont(blind,3);
TextDrawLetterSize(blind,1.000000,51.000000);
TextDrawColor(blind,0x000000AA);
TextDrawSetOutline(blind,1);
TextDrawSetProportional(blind,1);
TextDrawSetShadow(blind,1);
print("\n--------------------------------------");
print(" Rope System");
print("--------------------------------------\n");
for(new p=0; p<howmanyropes; p++)
{
for(new i=0; i<ropelength; i++)
{ //alte model id = 338
seile[i][p] = b_CreateObject(3004,0,0,-90000-i,87.640026855469,342.13500976563, 350.07507324219);
}
}
return 1;
}