How can i do a text including my id? Example:
:cmd_1
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
0B36: samp 1@ = get_player_nickname 21@
0AF9: samp say_msg "Hi, my id is %d" 21@
end
SAMP.CmdRet()
And show in chat: Hi, my id is 1 or other id, my id in game, like if i have 685 id: "Hi, my id is 685" and the command be /myid without to put id after command (/myid).
I mean when i use /myid to say in chat "Hi, my id is (my id)"
I tried all variables, many opcodes and it no works, in .lua mod is like this:
local _, myId = sampGetPlayerIdByCharHandle(playerPed)
imgui.Text(string.format("text", sampGetPlayerNickname(myId)))
imgui.Text(u8(string.format('%s', os.date())))
How can i do this in sanny builder? i tried all things
:cmd_1
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
0B36: samp 1@ = get_player_nickname 21@
0AF9: samp say_msg "Hi, my id is %d" 21@
end
SAMP.CmdRet()
And show in chat: Hi, my id is 1 or other id, my id in game, like if i have 685 id: "Hi, my id is 685" and the command be /myid without to put id after command (/myid).
I mean when i use /myid to say in chat "Hi, my id is (my id)"
I tried all variables, many opcodes and it no works, in .lua mod is like this:
local _, myId = sampGetPlayerIdByCharHandle(playerPed)
imgui.Text(string.format("text", sampGetPlayerNickname(myId)))
imgui.Text(u8(string.format('%s', os.date())))
How can i do this in sanny builder? i tried all things