Removed bad str/num funcs

This commit is contained in:
David Anderson 2004-03-08 05:28:18 +00:00
parent fa8835f695
commit c6dd8eac6b
3 changed files with 5 additions and 13 deletions

View File

@ -42,7 +42,7 @@ stock cmd_target(id,const arg[],flags = 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) {
console_print(id,"Client with that name or userid not found")
return 0

View File

@ -15,17 +15,9 @@
#include <engine>
#include <fun>
stock num_to_str(num,string[],len)
return int_to_str(num,string,len)
native numtostr(num,string[],len)
stock numtostr(num,string[],len)
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)
native strtonum(const string[])
stock set_user_hitzones(index=0,target=0,body=255)
return set_hitzones(body)

View File

@ -35,10 +35,10 @@ native format(output[] ,len ,const format[] , {Float,_}:...);
native format_args(output[] ,len ,pos = 0);
/* Converts number to string. */
native int_to_str(num,string[],len);
native numtostr(num,string[],len);
/* Returns converted string to number. */
native str_to_int(const string[]);
native strtonum(string[]);
/* Checks if two strings equal. If len var is set
* then there are only c chars comapred. */