Maybe I'm missing something, but where does the transfer from arg2 to target occur in the /call statement?
Quote:
Code:
if (command == "/call") {
new arg2[52];
read_argv(2, arg2 <------- , 51);
get_user_name(target <------ ?, targetname, 51);
client_print(target, print_chat, "[Phone Mod] Your Phone is Ringing!")
client_print(target, print_chat, "[Phone Mod] Say ^"/answer^" to answer your phone.")
calling[target] == 1
}
|
Again, maybe I missed it, but if you're using read_argv into a variable arg2 but fining a user with an unassigned variable, I'd wonder where the magical data assignment occurs.