mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-04-16 14:32:33 +03:00
commit
0e38efcf83
@ -12,9 +12,12 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "fakemeta_amxx.h"
|
#include "fakemeta_amxx.h"
|
||||||
|
#include <engine_strucs.h>
|
||||||
|
|
||||||
TraceResult g_tr;
|
TraceResult g_tr;
|
||||||
|
|
||||||
|
ke::AString LightStyleBuffers[MAX_LIGHTSTYLES];
|
||||||
|
|
||||||
//by mahnsawce from his NS module
|
//by mahnsawce from his NS module
|
||||||
static cell AMX_NATIVE_CALL engfunc(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL engfunc(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
@ -595,8 +598,13 @@ static cell AMX_NATIVE_CALL engfunc(AMX *amx, cell *params)
|
|||||||
case EngFunc_LightStyle: // void ) (int style, const char* val);
|
case EngFunc_LightStyle: // void ) (int style, const char* val);
|
||||||
cRet = MF_GetAmxAddr(amx,params[2]);
|
cRet = MF_GetAmxAddr(amx,params[2]);
|
||||||
iparam1=cRet[0];
|
iparam1=cRet[0];
|
||||||
temp = MF_GetAmxString(amx,params[3],0,&len);
|
if (iparam1 < 0 || iparam1 >= ARRAYSIZE(LightStyleBuffers))
|
||||||
(*g_engfuncs.pfnLightStyle)(iparam1,temp);
|
{
|
||||||
|
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid style %d", iparam1);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
LightStyleBuffers[iparam1] = MF_GetAmxString(amx, params[3], 0, &len);
|
||||||
|
(*g_engfuncs.pfnLightStyle)(iparam1, LightStyleBuffers[iparam1].chars());
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
||||||
|
@ -459,7 +459,7 @@ native client_print_color(index, sender, const message[], any:...);
|
|||||||
* last, to the client with the highest index.
|
* last, to the client with the highest index.
|
||||||
*
|
*
|
||||||
* @param player Client index, use 0 to display to all clients
|
* @param player Client index, use 0 to display to all clients
|
||||||
* @param type Message type, see print_* destination constants in
|
* @param type Message type, see engprint_* destination constants in
|
||||||
* amxconst.inc
|
* amxconst.inc
|
||||||
* @param message Formatting rules
|
* @param message Formatting rules
|
||||||
* @param ... Variable number of formatting parameters
|
* @param ... Variable number of formatting parameters
|
||||||
|
@ -221,7 +221,7 @@ native menu_find_id(menu, page, key);
|
|||||||
* @return 1 on success, 0 on failure.
|
* @return 1 on success, 0 on failure.
|
||||||
* @error Invalid menu resource.
|
* @error Invalid menu resource.
|
||||||
*/
|
*/
|
||||||
native menu_item_getinfo(menu, item, &access, info[], infolen, name[]="", namelen=0, &callback);
|
native menu_item_getinfo(menu, item, &access = 0, info[] = "", infolen = 0, name[]="", namelen=0, &callback = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets an item's display text.
|
* Sets an item's display text.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user