ok i make new post ;) find some new way ... much easyr
Code:
#include <amxmod>
#include <amxmisc>
#define textlength 50
#pragma tabsize 0
public plugin_init()
{
register_plugin("test","073","MC-Olivenoel")
register_clcmd("make_test","maketest",0,"make the test")
}
public maketest(id)
{
new StringList[9][] = {"0","1","10","200","test0", "test1", "test2", "test10", "test200"}
new varil[textlength+1]
read_argv(1,varil,textlength)
if (equali(StringList[0], varil)){
//numvar is 0
client_cmd(id,"say numvar is 0")
return PLUGIN_HANDLED
}
if (equali(StringList[1], varil)){
//numvar is 1
client_cmd(id,"say numvar is 1")
return PLUGIN_HANDLED
}
if (equali(StringList[2], varil)){
//numvar is 10
client_cmd(id,"say numvar is 10")
return PLUGIN_HANDLED
}
if (equali(StringList[3], varil)){
//numvar is 200
client_cmd(id,"say numvar is 200")
return PLUGIN_HANDLED
}
client_cmd(id,"say numvar is not 0,1,10 or 200")
return PLUGIN_HANDLED
}