[UNSOLVED] Please Help this /warn System
#9

Quote:
Originally Posted by Skulls
pawn Код:
C:\Users\HIJOL GOSWAMI\PremiumPackage.pwn(93) : error 017: undefined symbol "strtok"
C:\Users\HIJOL GOSWAMI\PremiumPackage.pwn(93) : error 029: invalid expression, assumed zero
C:\Users\HIJOL GOSWAMI\PremiumPackage.pwn(93) : error 017: undefined symbol "string"
C:\Users\HIJOL GOSWAMI\PremiumPackage.pwn(93) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Im still getting this errors
Put the following code somewhere in your script;
Код:
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;
	}
And put under "new str[128];" in your command "new string[128];''
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)