mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Removed bad str/num funcs
This commit is contained in:
parent
fa8835f695
commit
c6dd8eac6b
@ -42,7 +42,7 @@ stock cmd_target(id,const arg[],flags = 1) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( ( player = find_player("c",arg) )==0 && arg[0]=='#' && arg[1] )
|
else if ( ( player = find_player("c",arg) )==0 && arg[0]=='#' && arg[1] )
|
||||||
player = find_player("k",str_to_int(arg[1]))
|
player = find_player("k",strtonum(arg[1]))
|
||||||
if (!player) {
|
if (!player) {
|
||||||
console_print(id,"Client with that name or userid not found")
|
console_print(id,"Client with that name or userid not found")
|
||||||
return 0
|
return 0
|
||||||
|
@ -15,17 +15,9 @@
|
|||||||
#include <engine>
|
#include <engine>
|
||||||
#include <fun>
|
#include <fun>
|
||||||
|
|
||||||
stock num_to_str(num,string[],len)
|
native numtostr(num,string[],len)
|
||||||
return int_to_str(num,string,len)
|
|
||||||
|
|
||||||
stock numtostr(num,string[],len)
|
native strtonum(const string[])
|
||||||
return int_to_str(num,string,len)
|
|
||||||
|
|
||||||
stock str_to_num(const string[])
|
|
||||||
return str_to_int(string)
|
|
||||||
|
|
||||||
stock strtonum(const string[])
|
|
||||||
return str_to_int(string)
|
|
||||||
|
|
||||||
stock set_user_hitzones(index=0,target=0,body=255)
|
stock set_user_hitzones(index=0,target=0,body=255)
|
||||||
return set_hitzones(body)
|
return set_hitzones(body)
|
||||||
|
@ -35,10 +35,10 @@ native format(output[] ,len ,const format[] , {Float,_}:...);
|
|||||||
native format_args(output[] ,len ,pos = 0);
|
native format_args(output[] ,len ,pos = 0);
|
||||||
|
|
||||||
/* Converts number to string. */
|
/* Converts number to string. */
|
||||||
native int_to_str(num,string[],len);
|
native numtostr(num,string[],len);
|
||||||
|
|
||||||
/* Returns converted string to number. */
|
/* Returns converted string to number. */
|
||||||
native str_to_int(const string[]);
|
native strtonum(string[]);
|
||||||
|
|
||||||
/* Checks if two strings equal. If len var is set
|
/* Checks if two strings equal. If len var is set
|
||||||
* then there are only c chars comapred. */
|
* then there are only c chars comapred. */
|
||||||
|
Loading…
Reference in New Issue
Block a user