17.05.2017, 14:04
Quote:
Создавать меньше локальных массивов.
Удали #pragma dynamic из кода. |
PHP код:
#if defined YSI_NO_HEAP_MALLOC
#if defined DYNAMIC_MEMORY
#pragma dynamic DYNAMIC_MEMORY
#define dynamic dynamic_is_now_DYNAMIC_MEMORY_ // See below...
#endif
#else
// Allocate extra memory for the normal stack and heap (64k, 16 times the
// size of the default stack)!
#if !defined DYNAMIC_MEMORY
#define DYNAMIC_MEMORY (65536)
#endif
#pragma dynamic MALLOC_MEMORY + DYNAMIC_MEMORY
// ====================================================================== //
// //
// IMPORTANT! //
// //
// ====================================================================== //
#define dynamic dynamic_is_now_DYNAMIC_MEMORY_ //
// ====================================================================== //
// //
// dynamic_is_now_DYNAMIC_MEMORY_ //
// //
// If you get a warning or error about "dynamic_is_now_DYNAMIC_MEMORY_", //
// hopefully (though doubtfully) you searched for something related to it //
// and found this. If you are slightly confused, just remember that any //
// reference to that variable is actually a reference to a variable //
// called "dynamic", and so the error/warning refers to that. //
// //
// _is_now_DYNAMIC_MEMORY_ //
// //
// If you get an error or warning about "_is_now_DYNAMIC_MEMORY_", it is //
// because you have tried to use "#pragma dynamic <number>" after //
// including "y_malloc" (or another library that eventually includes //
// "y_malloc"). Because that library allocates memory from the heap, it //
// needs control over how much memory is in the heap to begin with. You //
// do this with "#pragma dynamic <number>", which that library does. //
// Because using that a second time somewhere in your mode will break //
// "y_malloc", it disables the pragma, and instead outputs that error. //
// If you need to increase your stack or heap size (due to a stack/heap //
// collision), add this to the very top of your mode: //
// //
// #define DYNAMIC_MEMORY <number> //
// //
// ====================================================================== //
#endif
PHP код:
new user, money;
if(sscanf(params,"ui",user,money)) return SendClientMessage(playerid,-1,"asda");
Мод: https://github.com/lJohhnyl/Corso-RolePlay