Jump to content
  • 0

Eroare: strtok


Slipknot

Question

Salut am si eu o problema cand compilez gamemodul primesc erorile astea:

C:\Documents and Settings\Demogorgon666\Desktop\samp03\gamemodes\HGZ.pwn(10047) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Demogorgon666\Desktop\samp03\gamemodes\HGZ.pwn(10062) : error 047: array sizes do not match, or destination array is too small
Linia:
strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}

	new offset = index;
	new result[50];
	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}

Vrei ceva? [email protected]

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.