diff --git a/plugins/include/amxmisc.inc b/plugins/include/amxmisc.inc index a7f34d19..36cbd3f8 100755 --- a/plugins/include/amxmisc.inc +++ b/plugins/include/amxmisc.inc @@ -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 diff --git a/plugins/include/amxmod.inc b/plugins/include/amxmod.inc index 3d7f50e1..09d6de0c 100755 --- a/plugins/include/amxmod.inc +++ b/plugins/include/amxmod.inc @@ -15,17 +15,9 @@ #include #include -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) diff --git a/plugins/include/string.inc b/plugins/include/string.inc index ed238403..985fb8d3 100755 --- a/plugins/include/string.inc +++ b/plugins/include/string.inc @@ -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. */