Run time error 6: "Invalid instruction" - 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: Run time error 6: "Invalid instruction" (
/showthread.php?tid=409354)
Run time error 6: "Invalid instruction" -
pasha97 - 21.01.2013
I have some warnings in server console. The server doesn't close after that, but i noticed that this happense when player spawns car. Here is a part of server log:
Код:
[16:29:33] *-_-* "agverte"(id: 4) typed "/v 555"
[16:30:09] [debug] Run time error 6: "Invalid instruction"
[16:30:09] [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF
[16:30:09] [debug] AMX backtrace:
[16:30:09] [debug] #0 ???????? in ?? () from UFFtest.amx
[16:30:09] [debug] Run time error 6: "Invalid instruction"
[16:30:09] [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF
[16:30:09] [debug] AMX backtrace:
[16:30:09] [debug] #0 ???????? in ?? () from UFFtest.amx
[16:30:09] [debug] Run time error 6: "Invalid instruction"
[16:30:09] [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF
[16:30:09] [debug] AMX backtrace:
[16:30:09] [debug] #0 ???????? in ?? () from UFFtest.amx
[16:30:16] [debug] Run time error 6: "Invalid instruction"
[16:30:16] [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF
[16:30:16] [debug] AMX backtrace:
[16:30:16] [debug] #0 ???????? in ?? () from UFFtest.amx
[16:30:16] [debug] Run time error 6: "Invalid instruction"
[16:30:16] [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF
[16:30:16] [debug] AMX backtrace:
[16:30:16] [debug] #0 ???????? in ?? () from UFFtest.amx
[16:30:44] [debug] Run time error 6: "Invalid instruction"
[16:30:44] [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF
[16:30:44] [debug] AMX backtrace:
[16:30:44] [debug] #0 ???????? in ?? () from UFFtest.amx
[16:30:56] [debug] Run time error 6: "Invalid instruction"
[16:30:56] [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF
[16:30:56] [debug] AMX backtrace:
[16:30:56] [debug] #0 ???????? in ?? () from UFFtest.amx
[16:30:56] [debug] Run time error 6: "Invalid instruction"
[16:30:56] [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF
[16:30:56] [debug] AMX backtrace:
[16:30:56] [debug] #0 ???????? in ?? () from UFFtest.amx
[16:30:56] [debug] Run time error 6: "Invalid instruction"
[16:30:56] [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF
[16:30:56] [debug] AMX backtrace:
[16:30:56] [debug] #0 ???????? in ?? () from UFFtest.amx
[16:31:05] * [EXIT][Time: 16:31][Date: 21,1]: agverte has left the server. *
[16:31:05] [part] agverte has left the server (4:1)
Re: Run time error 6: "Invalid instruction" -
pasha97 - 21.01.2013
anyone?
Re: Run time error 6: "Invalid instruction" -
pasha97 - 21.01.2013
please help me anyone
AW: Run time error 6: "Invalid instruction" -
Blackazur - 21.01.2013
Give the code from the command with was the player spawn the car.
Re: Run time error 6: "Invalid instruction" -
pasha97 - 21.01.2013
pawn Код:
if (strcmp("/v", cmd, true, 10) == 0)
{
new tmp[512];
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0)
{
if(GetPlayerInterior(playerid) > 1) return GameTextForPlayer(playerid, "~r~You can't spawn cars in interior!", 5000, 5);
ShowPlayerDialog(playerid, DIALOGID+10, DIALOG_STYLE_LIST, "Vehicles", "{ffff00}Categories\n{ffcc00}Preview mode {00ff00}NEW!", "..::Ok::..", "..::Return::..");
return 1;
}
if(strval(tmp) < 400 || strval(tmp) > 611) return GameTextForPlayer(playerid, "~r~Vehicle id from 400 to 611. Or use just /v!", 5000, 5);
if(IsPlayerInAnyVehicle(playerid)) return GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
new Float:x,Float:y,Float:z,Float:a, veh;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
veh = CreateVehicle(strval(tmp),x+1,y+1,z,a,1,1,10000);
PutPlayerInVehicle(playerid, veh, 0);
if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
{
DestroyVehicle(curveh[playerid]);
}
curveh[playerid] = veh;
return 1;
}
Re: Run time error 6: "Invalid instruction" -
Vince - 21.01.2013
The erroneous instructions only appears more than 30 seconds after that command has executed. But seriously, how are we supposed to know where "???????? in ??" is? Recompile your script with debug flags.