[Help]
#3

You have one { bracket which you don't need, try this:

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;
}
And make sure you have the "strtok" function (i don't see it in the code you gave).
Reply


Messages In This Thread
[Help] - by MB@ - 30.09.2009, 15:27
Re: [Help] - by MB@ - 30.09.2009, 15:33
Re: [Help] - by Correlli - 30.09.2009, 15:37
Re: [Help] - by MB@ - 30.09.2009, 15:39
Re: [Help] - by Correlli - 30.09.2009, 15:39
Re: [Help] - by MB@ - 30.09.2009, 15:41

Forum Jump:


Users browsing this thread: 1 Guest(s)