Quantcast

Jump to content

» «
Photo

New Opcode Help

  • This topic is locked This topic is locked
1 reply to this topic
MikeTraceur
  • MikeTraceur

    Player Hater

  • BUSTED!
  • Joined: 21 Apr 2012

#1

Posted 22 April 2012 - 10:15 AM

Get into the heart of the matter tounge.gif , I made New Opcode With C++ It is an experimental just Such us "Nop" Message Txt , but While I start game is will crashed wink.gif Is there a problem at here . .
>> CLEO_SDK\demo_plugins\IntOperations
CODE

------------------------define OPCODE------------------------
#define OPCODE_INTOP_AUT   0x0B17
------------------------Opcode Result-------------------------
OpcodeResult WINAPI Script_IntOp_AUT(CScriptThread* thread);
-------------------------register opcodes-------------------
if (CLEO_RegisterOpcode(OPCODE_INTOP_AUT, &Script_IntOp_AUT))
result = TRUE;
-------------------------Opcode Format--------------------
OpcodeResult WINAPI Script_IntOp_SHL(CScriptThread* thread)
/****************************************************************
     Opcode Format
0B17=1, Author %1h%
****************************************************************/
{
int a = CLEO_GetIntOpcodeParam(thread);
int b = CLEO_GetIntOpcodeParam(thread);

CLEO_SetIntOpcodeParam(thread, a << b);

return OR_CONTINUE;
}


Here I Put My Opcode in { IntOperations.cleo opcodes }
data\sa\SASCM.INI
CODE

; IntOperations.cleo opcodes
0B17=1, Author %1h%

the Last stage I Put The Opcode in opcode.txt
CODE

0B17: Author "USERNAME"


Help Pleasse icon14.gif

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#2

Posted 22 April 2012 - 10:20 AM

Ahmed, we are not stupid smile.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users