Jump to content

Question

Posted

Am un sistem proprietati si cand dau sa compilez imi da asta 8qWQaXO.png

public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256], idx;
	cmd = strtok(cmdtext, idx);

2 answers to this question

Recommended Posts

Posted

Pune asta la sfarsitul GM/FS-ului:

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;
}

"Maxim respect pentru orice proiect

Nimeni nu poate sa va scape cand va execut direct"

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.