04.07.2014, 12:23
When Recently, I Added This Command And Typing It:
In The Server Console,It Says This:
[14:41:32] [ADM] The {FF0000}Owner {FF5900}[RO]Youssef1000 (91) Has Check The Reports.
[14:41:32] [debug] Run time error 6: "Invalid instruction"
[14:41:32] [debug] Unknown opcode 0x35b2eb0 at address 0x0000006C
[14:41:32] [debug] AMX backtrace:
[14:41:32] [debug] #0 0000006c in public cmd_reports () from LSGW2.amx
[14:41:32] [debug] #1 native CallLocalFunction () [00472ef0] from samp-server.exe
[14:41:32] [debug] #2 000186a8 in ?? (0x00000000, 0x010a9590) from LSGW2.amx
[14:41:32] [debug] #3 0000d28c in public OnPlayerCommandText (0x00000000, 0x010a9590) from LSGW2.amx
And Ingame It Sends The Message That The Owner [RO]Youssef1000 (91)(Problem Here Too From Playerid) Has Check The Reports, And It Sends, SERVER: Unknown command. please help.
pawn Код:
COMMAND:reports(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, 0xFF0000AA, "You Are Not A Basic Moderator Or Higher Rank!");
new reporter[24],reported[24],reason[80],line[128],str[1000],temp[130], adminname[MAX_PLAYER_NAME];
new File:file = fopen("Reports.ini", io_read);
GetPlayerName(playerid, adminname, MAX_PLAYER_NAME);
while(fread(file, line))
{
sscanf(line, "p<|>sss", reporter, reported, reason);//to split the line
format(temp, 130, "Reporter: %s || Player Reported: %s || Reason: %s\n", reporter, reported, reason);
strcat(str, temp, 130);
}
ShowPlayerDialog(playerid, DIALOG_REPORTS, DIALOG_STYLE_MSGBOX, "List Of Reports", str, "Close", "");
fclose(file);
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0)
{
new message4[128];
format(message4, sizeof(message4), "[ADM] The {FF0000}%s {FF5900}%s (%d) Has Check The Reports.",AdmRank, adminname, playerid), SendClientMessage(i, 0xFF5900FF, message4);
print(message4);
}
}
return 1;
}
[14:41:32] [ADM] The {FF0000}Owner {FF5900}[RO]Youssef1000 (91) Has Check The Reports.
[14:41:32] [debug] Run time error 6: "Invalid instruction"
[14:41:32] [debug] Unknown opcode 0x35b2eb0 at address 0x0000006C
[14:41:32] [debug] AMX backtrace:
[14:41:32] [debug] #0 0000006c in public cmd_reports () from LSGW2.amx
[14:41:32] [debug] #1 native CallLocalFunction () [00472ef0] from samp-server.exe
[14:41:32] [debug] #2 000186a8 in ?? (0x00000000, 0x010a9590) from LSGW2.amx
[14:41:32] [debug] #3 0000d28c in public OnPlayerCommandText (0x00000000, 0x010a9590) from LSGW2.amx
And Ingame It Sends The Message That The Owner [RO]Youssef1000 (91)(Problem Here Too From Playerid) Has Check The Reports, And It Sends, SERVER: Unknown command. please help.