Fixed format tags
This commit is contained in:
parent
226c7300be
commit
1aee2c6f81
@ -91,16 +91,16 @@ native get_localinfo(const info[],output[],len);
|
||||
native show_motd(player,const message[],const header[]="");
|
||||
|
||||
/* Sends message to player. Set index to 0 to send text globaly. */
|
||||
native client_print(index,type,const message[],{Float,_}:...);
|
||||
native client_print(index,type,const message[],{Float,Sql,Result,_}:...);
|
||||
|
||||
/* Sends message to player by engine. Set index to 0 to send text globaly. */
|
||||
native engclient_print(player,type,const message[],{Float,_}:...);
|
||||
native engclient_print(player,type,const message[],{Float,Sql,Result,_}:...);
|
||||
|
||||
/* Sends message to console. */
|
||||
native console_print(id,const message[],{Float,_}:...);
|
||||
native console_print(id,const message[],{Float,Sql,Result,_}:...);
|
||||
|
||||
/* Sends command to console. */
|
||||
native console_cmd(id,const cmd[],{Float,_}:...);
|
||||
native console_cmd(id,const cmd[],{Float,Sql,Result,_}:...);
|
||||
|
||||
/* Registers event on which a given function will be called
|
||||
* Flags:
|
||||
@ -131,7 +131,7 @@ native register_logevent(const function[], argsnum, ... );
|
||||
native set_hudmessage(red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2,channel=4);
|
||||
|
||||
/* Displays HUD message to given player. */
|
||||
native show_hudmessage(index,const message[],{Float,_}:...);
|
||||
native show_hudmessage(index,const message[],{Float,Sql,Result,_}:...);
|
||||
|
||||
/* Displays menu. Keys have bit values (key 1 is (1<<0), key 5 is (1<<4) etc.). */
|
||||
native show_menu(index,keys,const menu[], time = -1, title[] = "");
|
||||
@ -140,7 +140,7 @@ native show_menu(index,keys,const menu[], time = -1, title[] = "");
|
||||
* When you are asking for string the array and length is needed (read_data(2,name,len)).
|
||||
* Integer is returned by function (new me = read_data(3)).
|
||||
* Float is set in second parameter (read_data(3,value)). */
|
||||
native read_data(value, {Float,_}:... );
|
||||
native read_data(value, {Float,Sql,Result,_}:... );
|
||||
|
||||
/* Returns number of values in client message. */
|
||||
native read_datanum();
|
||||
@ -161,7 +161,7 @@ native parse_loguser(const text[], name[], nlen, &userid = -2, authid[] = "", al
|
||||
|
||||
/* Prints message to server console.
|
||||
* You may use text formating (f.e. server_print("%-32s %.2f!","hello",7.345)) */
|
||||
native server_print(const message[], {Float,_}:...);
|
||||
native server_print(const message[], {Float,Sql,Result,_}:...);
|
||||
|
||||
/* Returns 1 or 0. */
|
||||
native is_map_valid(const mapname[]);
|
||||
@ -286,13 +286,13 @@ native user_kill(index,flag=0);
|
||||
* ... - optional parameters
|
||||
* Return value:
|
||||
* always 0 */
|
||||
native log_amx(const string[], {Float,_}:...);
|
||||
native log_amx(const string[], {Float,Sql,Result,_}:...);
|
||||
|
||||
/* Sends message to standard HL logs. */
|
||||
native log_message(const message[],{Float,_}:...);
|
||||
native log_message(const message[],{Float,Sql,Result,_}:...);
|
||||
|
||||
/* Sends log message to specified file. */
|
||||
native log_to_file(const file[],const message[],{Float,_}:...);
|
||||
native log_to_file(const file[],const message[],{Float,Sql,Result,_}:...);
|
||||
|
||||
/* Returns number of players put in server.
|
||||
* If flag is set then also connecting are counted. */
|
||||
@ -347,7 +347,7 @@ native find_player(const flags[], ... );
|
||||
native remove_quotes(text[]);
|
||||
|
||||
/* Executes command on player. */
|
||||
native client_cmd(index,const command[],{Float,_}:...);
|
||||
native client_cmd(index,const command[],{Float,Sql,Result,_}:...);
|
||||
|
||||
/* This is an emulation of a client command (commands aren't send to client!).
|
||||
* It allows to execute some commands on players and bots.
|
||||
@ -356,7 +356,7 @@ native client_cmd(index,const command[],{Float,_}:...);
|
||||
native engclient_cmd(index,const command[],arg1[]="",arg2[]="");
|
||||
|
||||
/* Executes command on a server console. */
|
||||
native server_cmd(const command[],{Float,_}:...);
|
||||
native server_cmd(const command[],{Float,Sql,Result,_}:...);
|
||||
|
||||
/* Sets a cvar to given value. */
|
||||
native set_cvar_string(const cvar[],const value[]);
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include <engine_const>
|
||||
|
||||
native traceresult(type,{Float,_}:...);
|
||||
native traceresult(type,{Float,Sql,Result,_}:...);
|
||||
|
||||
/* Registers a client impulse to a function. Function is passed the ID of the user. */
|
||||
native register_impulse(impulse, function[]);
|
||||
@ -65,7 +65,7 @@ native get_msg_origin(Float:_Origin[3]);
|
||||
/* Precaches any file. */
|
||||
native precache_generic(szFile[]);
|
||||
/* Precaches an event. */
|
||||
native precache_event(type, Name[], {float,_}:...);
|
||||
native precache_event(type, Name[], {Float,Sql,Result,_}:...);
|
||||
|
||||
/* set/get a user's speak flags */
|
||||
native set_speak(iIndex, iSpeakFlags)
|
||||
@ -216,11 +216,11 @@ native playback_event(flags,invoker,eventindex,Float:delay,Float:origin[3],Float
|
||||
/* Gets parameters sent from CmdStart.
|
||||
Note that you will receive modified values if any other plugin have
|
||||
changed them. */
|
||||
native get_usercmd(type,{Float,_}:...);
|
||||
native get_usercmd(type,{Float,Sql,Result,_}:...);
|
||||
|
||||
/* Sets the parameters sent from CmdStart.
|
||||
Note that your changes will be seen by any other plugin doing get_usercmd() */
|
||||
native set_usercmd(type,{Float,_}:...);
|
||||
native set_usercmd(type,{Float,Sql,Result,_}:...);
|
||||
|
||||
/* FORWARDS
|
||||
**********/
|
||||
|
@ -10,10 +10,10 @@
|
||||
#include <fakemeta_const>
|
||||
|
||||
/* Returns entvar data from an entity Use the pev_* enum to specify which form of data you want returned. */
|
||||
native pev(_index,_value,{Float,_}:...)
|
||||
native pev(_index,_value,{Float,Sql,Result,_}:...)
|
||||
|
||||
/* Sets entvar data for an entity. Use the pev_* enum */
|
||||
native set_pev(_index,_value,{Float,_}:...)
|
||||
native set_pev(_index,_value,{Float,Sql,Result,_}:...)
|
||||
|
||||
/* Returns an integer from private data. _linuxdiff is added into the _Offset if it's used on a linux server. */
|
||||
native get_pdata_int(_index,_Offset,_linuxdiff=5);
|
||||
@ -32,7 +32,7 @@ native set_pdata_float(_index,_Offset,Float:_Value,_linuxdiff=5);
|
||||
native register_forward(_forwardType,_function[],_post=0);
|
||||
|
||||
/* Returns data for metamod */
|
||||
native forward_return(type,{Float,_}:...);
|
||||
native forward_return(type,{Float,Sql,Result,_}:...);
|
||||
|
||||
native engfunc(type,{Float,_}:...);
|
||||
native dllfunc(type,{Float,_}:...);
|
||||
native engfunc(type,{Float,Sql,Result,_}:...);
|
||||
native dllfunc(type,{Float,Sql,Result,_}:...);
|
@ -48,7 +48,7 @@ native fclose(file);
|
||||
//Read a file for ret_size length
|
||||
native fread(file,ret[],ret_size);
|
||||
//Write a file
|
||||
native fwrite(file,const str[],{Float,_}:...);
|
||||
native fwrite(file,const str[],{Float,Sql,Result,_}:...);
|
||||
//Check if at the end of a file
|
||||
native feof(file);
|
||||
//Seek a file
|
||||
@ -58,13 +58,13 @@ native rewind(file);
|
||||
//Flush a file
|
||||
native fflush(file);
|
||||
//Scan a file by a format
|
||||
native fscanf(file,const str[],{Float,_}:...);
|
||||
native fscanf(file,const str[],{Float,Sql,Result,_}:...);
|
||||
//Returns the current file position pointer
|
||||
native ftell(file);
|
||||
//Return the size of a file
|
||||
native filesize(const filename[],{Float,_}:...);
|
||||
native filesize(const filename[],{Float,Sql,Result,_}:...);
|
||||
//Delete a file (delete_file macro)
|
||||
native unlink(const filename[],{Float,_}:...);
|
||||
native unlink(const filename[],{Float,Sql,Result,_}:...);
|
||||
|
||||
//These are type specific file getting and writing commands:
|
||||
//c=char, s=short, l=long, i=int, f=float
|
||||
|
@ -18,7 +18,7 @@ stock is_entity(id)
|
||||
return is_valid_ent(id)
|
||||
|
||||
/* The end of the native is buffered incase the plugin is including an NS_VERSION (no longer supported), ignore it */
|
||||
stock get_build(classname[], value, number=0,{Float,_}:...)
|
||||
stock get_build(classname[], value, number=0,{Float,Sql,Result,_}:...)
|
||||
return ns_get_build(classname, value, number)
|
||||
|
||||
stock get_private_i(index, offset, linuxdiff=5)
|
||||
|
@ -29,7 +29,7 @@ native add(dest[],len,const src[],max=0);
|
||||
/* Fills string with given format and parameters.
|
||||
* Function returns number of copied chars.
|
||||
* Example: format(dest,"Hello %s. You are %d years old","Tom",17). */
|
||||
native format(output[] ,len ,const format[] , {Float,_}:...);
|
||||
native format(output[] ,len ,const format[] , {Float,Sql,Result,_}:...);
|
||||
|
||||
/* Gets parameters from function as formated string. */
|
||||
native format_args(output[] ,len ,pos = 0);
|
||||
|
Loading…
Reference in New Issue
Block a user