dude you just have to translate it to c++, i don't know how to do that because i never used c++ but it shouldn't be too hard, honestly if you can't read cleo and you say you know c++ then you should quit programming. As far as i know Cleo is similar to c++ in many aspects.Do you even read: C++/C#
i know Cleo is similar to c++ in many aspects.
If samp.dll + 0x001 is the function for SAY
How can i call it and/or see what params it take?
C++/C#
reinterpret_cast< void( CALLINGCONVENTION* )( ...params here ) >( samp_dll + 0x1 )( ... )
Yea i know how to do that in c++, i was expecting c++ and c# example:
in c++ void (say*)(const char*) = (void(*(const char*))(samp.dll + offset)
but i need an example in c#: as the title says: "how-to-call-a-function-from-a-pointer" in c# more than anything, you gave me a c++ example which i know how to do in
Yea i know how to do that in c++, i was expecting c++ and c# example:
lpParameter
yeah memory management for strings and the way you format strings in cleo is nothing like c++The fuck are you talking about, that has to be the most retarded thing I've heard all year. Congratulations on that. CLEO and C++ are completely different languages... CLEO is a SCRIPTING language, C++ is a general purpose programming language. They aren't even nearly compiled the same, not to mention the drastically different syntax they use? Can you perform some of the same functions in CLEO that you can in C++? Sure. But the performance will suffer greatly. Every opcode performed in CLEO ends up being performed by the game's engine in result (see CRunningScript:: ProcessCommands functions)
-Mike
Also don't call the things i say retarded when you are calling cleo a scripting language, scripts don't have to be compiled but cleo does. Scripting language implies you don't have to compile your code, so please watch your tone cause i really don't appreciate it especially from someone who just talks about facts like they know something about it when they actually know jack shit.The fuck are you talking about, that has to be the most retarded thing I've heard all year. Congratulations on that. CLEO and C++ are completely different languages... CLEO is a SCRIPTING language, C++ is a general purpose programming language. They aren't even nearly compiled the same, not to mention the drastically different syntax they use? Can you perform some of the same functions in CLEO that you can in C++? Sure. But the performance will suffer greatly. Every opcode performed in CLEO ends up being performed by the game's engine in result (see CRunningScript:: ProcessCommands functions)
-Mike
i think sb/cleo is made in c++ so you are actually right i guess, but im a script kiddie so i dont rlly careAlso don't call the things i say retarded when you are calling cleo a scripting language, scripts don't have to be compiled but cleo does. Scripting language implies you don't have to compile your code, so please watch your tone cause i really don't appreciate it especially from someone who just talks about facts like they know something about it when they actually know jack shit.
yeah memory management for strings and the way you format strings in cleo is nothing like c++
Also don't call the things i say retarded when you are calling cleo a scripting language, scripts don't have to be compiled but cleo does. Scripting language implies you don't have to compile your code, so please watch your tone cause i really don't appreciate it especially from someone who just talks about facts like they know something about it when they actually know jack shit.
no, you noob, there is no such thing as a compiled scripting language.There is no point in arguing with someone like you. Do your research and come back when you have any sort of common sense. Maybe google what a scripting language is? There are compiled scripting languages, and interpreted scripting languages. How they're executed does not determine whether it is a scripting language or not. Now fuck off.
yes i ask for a c# exmaple, you can't read or what's your problem?Maybe you should learn how to form a question, or properly form a sentence actually.
You ask for c++/c# examples and then say you know how to do it in c++?
-Mike
whats the point of research when all he does is copy paste literal definitions from google.