13.03.2019, 17:40
(
Последний раз редактировалось antixgaming; 14.03.2019 в 17:01.
)
Delete
/*FOR LINE 7411:*/ warning 239: literal array/string passed to a non-const parameter
static const Strig[256];
new string[5]; // example holder for FOOD with 4 chars
memcpy(string, "FOOD", 0, 5*4, 5);
PreloadAnimLib(playerid, string);
stock PreloadAnimLib(playerid, const animlib[]) ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
#define PreloadAnimLib(%0,%1) ApplyAnimation(%0,%1,"null",0.0,0,0,0,0,0)
how about trying to do this?
PHP код:
|
No, the error is, that you have to use const in the function header:
PHP код:
But i recommend you to use a macro: PHP код:
|