30.09.2009, 15:37
You have one { bracket which you don't need, try this:
And make sure you have the "strtok" function (i don't see it in the code you gave).
pawn Код:
#include <a_samp>
#define POLICE 1
#define ARMY 2
#define FBI 3
forward IsPlayerInPolice(playerid);
forward IsPlayerInArmy(playerid);
forward IsPlayerInFbi(playerid);
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128];
new tmp[128];
new idx;
new giveplayername[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
new string[128];
cmd = strtok(cmd,idx);
if(strcmp("/command", cmdtext, true, 8) == 0)
{
return 1;
}
return 0;
}