17.02.2009, 16:08
pawn Код:
if (strcmp("/cmd", cmdtext, true) == 0)
{
new var;
new tmp[256];
tmp = strtok(cmdtext, idx);
var = strval(tmp);
if(!strlen(tmp) || (var < 0 || var > 1))
{
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /cmd [1/0]");
return 1;
}
else if(housestuff == 0)
{
print("zero");
return 1;
}
else if(housestuff == 1)
{
print("one");
return 1;
}
}
If i type /cmd <something> - nothing happens.
If i type /cmd - gives me tutorial how to write.
Any Ideas..?