11.02.2012, 20:21
Okay, so If I type any command on the server it shows, SERVER: Unknown Command
Top of OnPlayerCommandText
This is the last command on OnPlayerCommand
Please, Any help is appreciated.
Top of OnPlayerCommandText
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new giveplayerid;
new specplayerid;
new cmd[256];
new tmp[256];
new idx;
cmd = strtok(cmdtext, idx);
pawn Код:
if(strcmp(cmd, "/how", true) == 0)
{
SendClientMessage(playerid, COLOR_SAY, "Help");
SendClientMessage(playerid, COLOR_SAY, "Kill enemy, then you get +1 score.");
SendClientMessage(playerid, COLOR_SAY, "Ranks is avabile: /rank");
return 1;
}
return 1;
}