06.11.2011, 01:17
(
Последний раз редактировалось 15outland; 06.11.2011 в 03:36.
)
Hi,
I wasn't quite sure where to post this but I have a problem regarding the commands on my server..
for example, If i do /hitlist - It will display all ther current hits on people, but then underneath that, It says "Invalid Command! Use /cmds to see the general commands."); or "Unknown Command"
This is the return line after the commands..
"return SendClientMessage(playerid, WHITE, "Invalid Command! Use /cmds to see the general commands.");"
************************************************** ************************************
I.E
I have only one at the end, but even if I remove that, or try to change, It will just say "UNKNOWN COMMAND"
I have no clue on how to stop it from popping up..
If anyone can help me out here, be a big help
- I do apologize If It doesn't make all much sense XD
************************************************** *******************************
So to try to make it more clear.
The commands do work, but after each one it still says the error below it, Invalid Command or Unknown Command.
I wasn't quite sure where to post this but I have a problem regarding the commands on my server..
for example, If i do /hitlist - It will display all ther current hits on people, but then underneath that, It says "Invalid Command! Use /cmds to see the general commands."); or "Unknown Command"
This is the return line after the commands..
"return SendClientMessage(playerid, WHITE, "Invalid Command! Use /cmds to see the general commands.");"
************************************************** ************************************
I.E
pawn Код:
if(!strcmp(cmdtext,"/pc",true))
{
HideDraw(playerid);
TextDrawShowForPlayer(playerid,text41);
TextDrawShowForPlayer(playerid,text42);
TextDrawShowForPlayer(playerid,PCBOX);
TextDrawShowForPlayer(playerid,text43);
return 1;
}
if(!strcmp(cmdtext,"/rules",true))
{
SendClientMessage(playerid, 0x00C2ECFF, "Rule 1: Do Not Hack, Cheat Or Bug Abuse Or You Will Get Kicked/Banned.");
SendClientMessage(playerid, 0x00C2ECFF, "Rule 2: Do Not Deathmatch Other Players. Cops can only kill reds and oranges.");
SendClientMessage(playerid, 0x00C2ECFF, "Rule 3: Do Not Insult Admins. Respect other players.");
SendClientMessage(playerid, 0x00C2ECFF, "Rule 4: Do Not Ask To Be An Admin. We will ask you.");
SendClientMessage(playerid, 0x00C2ECFF, "Rule 5: Do Not Bitch/Complain About The Server.");
SendClientMessage(playerid, 0x00C2ECFF, " ");
return 1;
}
return SendClientMessage(playerid, WHITE, "Invalid Command! Use /cmds to see the general commands.");
pawn Код:
if(!strcmp(cmdtext, "/hitlist", true))
{
new count = 0;
SendClientMessage(playerid, COLOR_MSG, "Listing Currently Placed Hits:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && hit[i] > 0)
{
new string[256];
format(string, 256, "Hit On %s (%i) For $%i", ReturnPlayerName(i), i, hit[i]);
SendClientMessage(playerid, COLOR_FOUND, string);
count++;
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_ERROR, "No Hits Have Been Placed At This Time!");
}
}
I have no clue on how to stop it from popping up..
If anyone can help me out here, be a big help

************************************************** *******************************
So to try to make it more clear.
The commands do work, but after each one it still says the error below it, Invalid Command or Unknown Command.