{$CLEO .cs}
0000:
CONST
SAMP_DIALOG_INFO_OFFSET = 0x212A40
SAMP_DIALOG_SHOW = 0x816F0
END
alloc 0@ = 24
alloc 1@ = 24
alloc 2@ = 60
format 0@ = "OK"
format 1@ = "Close"
format 2@ = "POLICE"
0AC6: 3@ = label @dText offset
WHILE TRUE
WAIT 0
if 0ADC: "MEMO"
THEN
0AB1: @sDialog 4 button1 0@ button2 1@ text 3@ caption 2@ style 0
wait 300
END
END
:sDialog
IF 0AA2: 10@ = "samp.dll"
THEN
0A8E: 11@ = 10@ + SAMP_DIALOG_INFO_OFFSET
0A8D: 12@ = readMem 11@ sz 4 vp 1
0A8E: 11@ = 10@ + SAMP_DIALOG_SHOW
0AA6: call_method 11@ struct 12@ num_params 7 pop 0 params 0 0@ 1@ 2@ 3@ 4@ 0
END
0AB2: 0
:dText
hex
"C0: Can su tro giup cua tat ca don vi" 0A
"C1: Bao cao / Tra loi" 0A
"C2: Dang den hien truong" 0A
"C3: Tu choi / Dang ban" 0A
"C4: Xac nhan / Dong y" 0A
"C5: Giu vi tri" 0A
"C6: Bao cao vi tri" 0A
"C7: Onduty" 0A
"C8: Offduty" 0A
"C9: Can xe cuu thuong" 0A
"C10: Da bat duoc doi tuong" 0A
"C11: Cac don vi tap trung" 0A
"C12: Thong tin doi tuong" 0A
"C13: Nhiem vu hoan thanh" 0A
"C14: Co no sung" 0A
"C15: Tai nan" 00
end
Thanks you very much,sorry,cuz i'm going to basicspringfield link said:Wtf is wrong with you?
JUST USE MY EXAMPLE - http://ugbase.eu/help-7/dialog-wo-sampfuncs/msg65433/#msg65433
COPY IT IN SANNY, THEN REPLACE MY TEXT WITH YOUR TEXT.
Code:{$CLEO .cs} 0000: CONST SAMP_DIALOG_INFO_OFFSET = 0x212A40 SAMP_DIALOG_SHOW = 0x816F0 END alloc 0@ = 24 alloc 1@ = 24 alloc 2@ = 60 format 0@ = "OK" format 1@ = "Close" format 2@ = "POLICE" 0AC6: 3@ = label @dText offset WHILE TRUE WAIT 0 if 0ADC: "MEMO" THEN 0AB1: @sDialog 4 button1 0@ button2 1@ text 3@ caption 2@ style 0 wait 300 END END :sDialog IF 0AA2: 10@ = "samp.dll" THEN 0A8E: 11@ = 10@ + SAMP_DIALOG_INFO_OFFSET 0A8D: 12@ = readMem 11@ sz 4 vp 1 0A8E: 11@ = 10@ + SAMP_DIALOG_SHOW 0AA6: call_method 11@ struct 12@ num_params 7 pop 0 params 0 0@ 1@ 2@ 3@ 4@ 0 END 0AB2: 0 :dText hex "C0: Can su tro giup cua tat ca don vi" 0A "C1: Bao cao / Tra loi" 0A "C2: Dang den hien truong" 0A "C3: Tu choi / Dang ban" 0A "C4: Xac nhan / Dong y" 0A "C5: Giu vi tri" 0A "C6: Bao cao vi tri" 0A "C7: Onduty" 0A "C8: Offduty" 0A "C9: Can xe cuu thuong" 0A "C10: Da bat duoc doi tuong" 0A "C11: Cac don vi tap trung" 0A "C12: Thong tin doi tuong" 0A "C13: Nhiem vu hoan thanh" 0A "C14: Co no sung" 0A "C15: Tai nan" 00 end