13.09.2016, 18:18
Hi'.
I'm making a very simple command but I got a weird problem. When I type the command, I get :
After this, I'm unable to make a command or something like that. Plus, when I type "gmx" on the console I get:
After typing the command, every callback called are send me error :
There is the command:
Every function in this command is working on others commands. :/
Thanks for reading and your help.
Sorry for English mistake.
I'm making a very simple command but I got a weird problem. When I type the command, I get :
Код:
[20:07:29] [debug] Run time error 5: "Invalid memory access" [20:07:29] [debug] AMX backtrace: [20:07:29] [debug] #0 000169b0 in ?? (0, 628228) from test.amx [20:07:29] [debug] #1 0001808c in public cmd_jetpack (0, 628408) from test.amx [20:07:29] [debug] #2 native CallLocalFunction () from samp-server.exe [20:07:29] [debug] #3 000169b0 in ?? (0, 628228) from test.amx [20:07:29] [debug] #4 0001808c in public OnPlayerCommandText (0, 628408) from test.amx
Код:
Console input: gmx [20:07:50] [debug] Run time error 6: "Invalid instruction" [20:07:50] [debug] Unknown opcode 0x99604 at address 0x00099604 [20:07:50] [debug] AMX backtrace: [20:07:50] [debug] #0 00099604 in public ScriptInit_OnGameModeExit () from test.amx [20:07:50] [debug] #1 000065d0 in public OnGameModeExit () from test.amx
Код:
[20:07:49] [debug] Run time error 6: "Invalid instruction" [20:07:49] [debug] Unknown opcode 0xf0000 at address 0x000000BE [20:07:49] [debug] AMX backtrace: [20:07:49] [debug] #0 000000be in public OnPlayerKeyStateChange (0, 1024, 0) from test.amx
PHP код:
CMD:jetpack(playerid)
{
if(pAccount[playerid][pAdmin] < GMODO) return ErrorMsg(playerid, _, false);
SetPlayerSpecialAction(playerid, GetPlayerSpecialAction(playerid) == 2 ? 0 : 2);
SCM(playerid, -1, "Passed"); // Debug
if(GetPlayerSpecialAction(playerid) == 2)
return AdminMessage(playerid, "You have remove your jetpack"), 1;
else
return AdminMessage(playerid, "You have spawned a jetpack"), 1;
}
Thanks for reading and your help.

Sorry for English mistake.