Jump to content

Question

Posted

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]

4 answers to this question

Recommended Posts

Posted

Multam a mers si mai am un warnings daca ma poti ajuta:

C:\Documents and Settings\Demogorgon666\Desktop\samp03\gamemodes\HGZ.pwn(11878) : warning 219: local variable "mod" shadows a variable at a preceding level
				new mod = 100;

Vrei ceva? [email protected]

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.