one error (1045) : error 021: symbol already defined: "strtok"
#1

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??
Reply
#2

If u have on top
Код:
#include <dini>
u don't to have this function in map
just remove strtok :>
Reply
#3

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.
Reply
#4

I dont have #incude <dini>

now what?
Reply
#5

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 :>
Reply
#6

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
Reply
#7

The problem you have is that you ALREADY HAVE strtok, removing it won't cause a problem as it's already there!
Reply
#8

i have the same problem with sandra's script, if i remove it, the pwno crashes..
Reply
#9

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
Reply
#10

You got Strtok twice in your GM/FS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)