27.01.2011, 03:33
I got rid of the invalid command line when typing /fish by adding this to the script
if(strcmp(cmd,"/fish",true)==0)
{
tmp = strtok(cmdtext, idx,true);
return 1;
}
But now, I get /register [Password] while fishing.
Code:
if(strcmp(cmd, "/register", true) == 0)
{
tmp = strtok(cmdtext, idx,true);
if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /register [PASSWORD]");
Any ideas on how to get rid of these annoying messages by adding something to the script?
if(strcmp(cmd,"/fish",true)==0)
{
tmp = strtok(cmdtext, idx,true);
return 1;
}
But now, I get /register [Password] while fishing.
Code:
if(strcmp(cmd, "/register", true) == 0)
{
tmp = strtok(cmdtext, idx,true);
if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /register [PASSWORD]");
Any ideas on how to get rid of these annoying messages by adding something to the script?