[HELP] strtok problem.
#1

Hello, I got a problem with defining strtok plus array index problem as you see:

Код:
C:\GTA.DECODER.LV\gamemodes\decoder.pwn(4099) : error 017: undefined symbol "strtok"
C:\GTA.DECODER.LV\gamemodes\decoder.pwn(4099) : error 033: array must be indexed (variable "cmd")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Heres the code to that lines:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{		new cmd[256];
 		cmd = strtok(cmdtext, idx); // Line 4099

//------------------------------------------------------------------------------
//=====================[ TELEPORT COMMANDS ]====================================
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
		if(!strcmp(cmd, "/ammunations",true) || !strcmp(cmd, "/ammunations",true))
 		{
	 		ShowMenuForPlayer(Ammunations,playerid);
	 		SendClientMessage(playerid, COLOR_YELLOW, "Laipni lugti municijas izvelne, izmanto lidzeklus un iegadajies ko velies.");
	  		TogglePlayerControllable(playerid, 0);
			return 1;
 		}
Reply


Messages In This Thread
[HELP] strtok problem. - by kukars22 - 27.07.2009, 12:08
Re: [HELP] strtok problem. - by MenaceX^ - 27.07.2009, 12:09
Re: [HELP] strtok problem. - by kukars22 - 27.07.2009, 12:10
Re: [HELP] strtok problem. - by kukars22 - 27.07.2009, 12:24
Re: [HELP] strtok problem. - by Djiango - 27.07.2009, 12:31
Re: [HELP] strtok problem. - by RyDeR` - 27.07.2009, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)