ajom
Well-known member
I am trying to create a Script from scratch that translates all incoming chat since SAMP Translator(0.3z) and SAMP Translate++ does not work on the server I am using. Does anybody know how to Google translate a string? Maybe a finished snippet would be a great help to me. Thank you!
The idea was like this:
The idea was like this:
Code:
{$CLEO .cs}
0000: translator
while true
wait 0
// 1@ var contains "Hello World! greetings from UGBASE! I'm ajom"
alloc 0@ 60 // 60 characters max
04B1: @googletranslate 4 _targetstring 1@ _translatedbuffer 0@ _inlanguage 'auto' _outlanguage 'es'
free 0@
end
:googletranslate
// some opcodes for translation...
ret 0
Last edited: