[Help]
#2

Yes but if i put it in onplayercommand text like this

Код:
#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, 7) == 0)
{
return 1;
}
return 0;
}
I get these erors

Код:
C:\Documents and Settings\Administrator\Desktop\Jub commands.pwn(23) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Administrator\Desktop\Jub commands.pwn(23) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Administrator\Desktop\Jub commands.pwn(33) : error 030: compound statement not closed at the end of file (started at line 17)
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)