Help Me! Two Lame Error's!!!
#1

Error's:
Код:
C:\Users\Slashas94\Desktop\Sona GM\gamemodes\Sona.pwn(1361) : error 021: symbol already defined: "strtok"
C:\Users\Slashas94\Desktop\Sona GM\gamemodes\Sona.pwn(1376) : error 047: array sizes do not match, or destination array is too small
Line's:
Код:
public OnPlayerExitedMenu(playerid)
{
	return 1;
}

stock strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}

	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}
Please help me, i can't fix it!
Reply


Messages In This Thread
[SOLVED] Help Me! Two Lame Error's!!! - by soulas85 - 25.07.2010, 12:35
Re: Help Me! Two Lame Error's!!! - by bartje01 - 25.07.2010, 12:56
Re: Help Me! Two Lame Error's!!! - by soulas85 - 25.07.2010, 13:02
Re: Help Me! Two Lame Error's!!! - by dice7 - 25.07.2010, 13:14
Re: Help Me! Two Lame Error's!!! - by soulas85 - 25.07.2010, 13:24
Re: Help Me! Two Lame Error's!!! - by bartje01 - 25.07.2010, 13:30
Re: Help Me! Two Lame Error's!!! - by soulas85 - 25.07.2010, 14:17
Re: Help Me! Two Lame Error's!!! - by Shadow™ - 25.07.2010, 14:26
Re: Help Me! Two Lame Error's!!! - by soulas85 - 25.07.2010, 14:37
Try - by bartje01 - 25.07.2010, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)