About calling natives from C
#4

Then you probably doing something wrong. Anyway try my method with SetPlayerTime.

Код:
typedef unsigned long DWORD;

void vm_SetPlayerTime(int playerid, int hour, int minute)
{
  DWORD
    ADDR_SetPlayerTime = /* address */;
  _asm
  {
    push minute
    push hour
    push playerid
    call ADDR_SetPlayerTime
  }
}
Reply


Messages In This Thread
About calling natives from C - by Streetplaya - 01.12.2009, 17:02
Re: About calling natives from C - by Google63 - 01.12.2009, 17:29
Re: About calling natives from C - by Streetplaya - 01.12.2009, 17:35
Re: About calling natives from C - by Google63 - 01.12.2009, 17:46
Re: About calling natives from C - by Streetplaya - 01.12.2009, 18:11
Re: About calling natives from C - by Google63 - 01.12.2009, 18:39
Re: About calling natives from C - by Streetplaya - 02.12.2009, 12:18
Re: About calling natives from C - by Toribio - 02.12.2009, 16:56
Re: About calling natives from C - by Incognito - 02.12.2009, 17:31
Re: About calling natives from C - by Streetplaya - 02.12.2009, 17:42

Forum Jump:


Users browsing this thread: 1 Guest(s)