Three Errors! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Three Errors! (
/showthread.php?tid=141986)
Three Errors! -
sekol - 16.04.2010
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