-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1314a86
commit 6920555
Showing
16 changed files
with
484 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
use samp_sdk::amx::AMX; | ||
use samp_sdk::{exec, log}; | ||
use log::error; | ||
use samp::amx::AmxIdent; | ||
use samp::exec_public; | ||
|
||
pub fn on_tg_message(amx_list: &[usize], botid: usize, fromid: i32, message_id: i32) { | ||
pub fn on_tg_message(amx_list: &[AmxIdent], botid: usize, fromid: i32, message_id: i32) { | ||
execute!(amx_list,"OnTGMessage",botid;fromid,message_id); | ||
} | ||
|
||
pub fn on_tg_send_message(amx_list: &[usize], name: String, botid: usize, message_id: i32) { | ||
pub fn on_tg_send_message(amx_list: &[AmxIdent], name: &str, botid: usize, message_id: i32) { | ||
execute!(amx_list,name,botid;message_id); | ||
} | ||
|
||
pub fn on_tg_channel_post(amx_list: &[usize], botid: usize, message_id: i32) { | ||
pub fn on_tg_channel_post(amx_list: &[AmxIdent], botid: usize, message_id: i32) { | ||
execute!(amx_list,"OnTGChannelPost",botid;message_id); | ||
} | ||
|
||
pub fn on_tg_user_joined(amx_list: &[usize], botid: usize, userid: i32) { | ||
pub fn on_tg_user_joined(amx_list: &[AmxIdent], botid: usize, userid: i32) { | ||
execute!(amx_list,"OnTGUserJoined",botid;userid); | ||
} | ||
|
||
pub fn on_tg_user_left(amx_list: &[usize], botid: usize, userid: i32) { | ||
pub fn on_tg_user_left(amx_list: &[AmxIdent], botid: usize, userid: i32) { | ||
execute!(amx_list,"OnTGUserLeft",botid;userid); | ||
} |
Oops, something went wrong.