Jump to content
  • 0

Problema startrok


Serego

Question

Am luat si eu un gm de aici de pe site ... si cand incerc sa il compilez primesc erorile astea :

C:\Users\\Desktop\eMAV_RolepLay\eMAV RolepLay\filterscripts\V-Admin.pwn(1401) : error 033: array must be indexed (variable "tmp")
C:\Users\\Desktop\eMAV_RolepLay\eMAV RolepLay\filterscripts\V-Admin.pwn(1439) : error 017: undefined symbol "strtok"

Cine stie ce pot sa fac ?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

startrok =]]]]

Pune asta jos in script:

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

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

Link to comment
Share on other sites

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.