one error (1045) : error 021: symbol already defined: "strtok" - 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: one error (1045) : error 021: symbol already defined: "strtok" (
/showthread.php?tid=74726)
one error (1045) : error 021: symbol already defined: "strtok" -
|CrippinBloodDrippin| - 25.04.2009
error
(1045) : error 021: symbol already defined: "strtok"
1042-1061 Lines
pawn Код:
// ***** Extra Stock Functions *****
stock strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[128];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
Whats up??
Re: one error (1045) : error 021: symbol already defined: "strtok" -
Jefff - 25.04.2009
If u have on top
u don't to have this function in map
just remove strtok :>
Re: one error (1045) : error 021: symbol already defined: "strtok" -
Weirdosport - 25.04.2009
Not just dini, quite a few other useful function includes have strtok in them, easiest way to find out would be to just get rid of the strtok stock and see if it compiles.
Re: one error (1045) : error 021: symbol already defined: "strtok" -
|CrippinBloodDrippin| - 25.04.2009
I dont have #incude <dini>
now what?
Re: one error (1045) : error 021: symbol already defined: "strtok" -
Jefff - 25.04.2009
Quote:
Originally Posted by Weirdosport
Not just dini, quite a few other useful function includes have strtok in them,
|
Quote:
Originally Posted by Jefff
just remove strtok :>
|
Re: one error (1045) : error 021: symbol already defined: "strtok" -
|CrippinBloodDrippin| - 25.04.2009
and how do i do that most of is in strtok rofl
this is my script that i havent worked on in ages i jus came back to samp
Re: one error (1045) : error 021: symbol already defined: "strtok" -
Weirdosport - 26.04.2009
The problem you have is that you ALREADY HAVE strtok, removing it won't cause a problem as it's already there!
Re: one error (1045) : error 021: symbol already defined: "strtok" -
vludraiz - 22.12.2009
i have the same problem with sandra's script, if i remove it, the pwno crashes..
Re: one error (1045) : error 021: symbol already defined: "strtok" -
Deat_Itself - 22.12.2009
Quote:
Originally Posted by Jefff
Quote:
Originally Posted by Weirdosport
Not just dini, quite a few other useful function includes have strtok in them,
|
Quote:
Originally Posted by Jefff
just remove strtok :>
|
|
What are they saying to you .Just try to find out all other useful functions like dudb .You can find it through 0.3a server
Re: one error (1045) : error 021: symbol already defined: "strtok" -
Oxside - 22.12.2009
You got Strtok twice in your GM/FS