Three Errors!
#1

Okay. That's again me and my next problem

So I was translating a GM from this forum to my native language. When i done the translating after a hour i tryed to compile it. And ZONK! An error occured!
Код:
C:\Documents and Settings\***\Folder\Censored\Yeah, it's secret\Sorry, it's secret too.\pawno\SRP.pwn(9434) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\***\Folder\Censored\Yeah, it's secret\Sorry, it's secret too.\pawno\SRP.pwn(9449) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\***\Folder\Censored\Yeah, it's secret\Sorry, it's secret too.\pawno\SRP.pwn(11743) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\Documents and Settings\***\Folder\Censored\Yeah, it's secret\Sorry, it's secret too.\pawno\SRP.pwn(35710) : error 021: symbol already defined: "sscanf"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
And those are lines i f*cked up
Код:
*9434*:
}
strtok(const string[], &index)
{

*From 9440 to 9453*:

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

public split(const strsrc[], strdest[][], delimiter)
{

*From 1740 to 1746*:
			    GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
					return 1;
			  }
				new mod = 100;
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{

*From 35708 to 35710*:

}
stock sscanf(string[], format[], {Float,_}:...)
{
Sorry for My bad english, but I learned it from MMORPG's
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)