View Single Post
Author Message
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 03-10-2004 , 17:38   Various problems
Reply With Quote #1

I've decided to make one thread about the problems I have, instead of 10
So any future problems I have will go here

So, I want to get all the arguments after a certain one..
like the command is "say hello and die" I want to be able to get "hello and die" from that - but the trick is it has to work for "say hello and how are you", and get "hello and how are you"
Any Suggestions?
The other problem is - I dont know why this doesnt work:
Code:
new pid = find_player("abcdl",username) if (!pid) {     client_print(id,print_chat,"[NSX] No such user")     return PLUGIN_HANDLED }
username is a variable that has what the user inputted, part of a name, a steamid, whatever - it *always* says user not found

And is this the correct way to switch about the cvar?
Code:
    switch(get_cvar_num("amx_show_activity"))     {         case 1: client_print(0,print_chat,"[NSX] Admin used command nsx_uncomm %s",targetname)         case 2: client_print(0,print_chat,"[NSX] %s used command nsx_uncomm %s",username,targetname)     }
That *should* check amx_show_activity, and display the proper one, but it doesnt display anything, and I DO NOT SEE amx_show_activity with amxx cvars
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline