Namechecking, beginner question
I made my first plugin after reading some wiki, but its not working (but listed at sm plugins list).
It's supposed to write in console if client have specified string in nickname. What I'm doing wrong? Code:
#include <sourcemod> |
Re: Namechecking, beginner question
StrEquals
|
Re: Namechecking, beginner question
StrContains() doesn't return true/false, i think i remember it used to, it returns the position in the string where the substring is located or -1 if it didn't find it.
So Code:
if(StrContains(clientName, "test", false) != -1){ |
Re: Namechecking, beginner question
I don't want equal strings, just one string need to contain the second one, but I don't have "Nick checker enabled!", "%s don't have test" or "%s have test" at server console.
#edit @up ty, im checking it #edit2 still nothing in console :< |
Re: Namechecking, beginner question
Quote:
I think it is true for some other languages/frameworks though (C#, Java?). |
Re: Namechecking, beginner question
string inc
Code:
/** Quote:
but I still have the problem :( Code:
#include <sourcemod> |
Re: Namechecking, beginner question
OnClientConnected, with a capital O
|
Re: Namechecking, beginner question
Quote:
Do you have any text in your error logs? |
Re: Namechecking, beginner question
@Miu
That was so stupid from me, thanks! |
Re: Namechecking, beginner question
On a side note, the %N format specifier is all you need most of the time instead of GetClientName().
PHP Code:
|
All times are GMT -4. The time now is 16:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.