SA-MP Forums Archive
0.3e strtok problem - 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)
+--- Thread: 0.3e strtok problem (/showthread.php?tid=328541)



0.3e strtok problem - Erik3333 - 25.03.2012

Hello!
I want to put on my 0.3e ways away, but when I run, these errors add up:

Код:
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(28082) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(28082) : error 033: array must be indexed (variable "cmd")
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(28441) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(30832) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(30832) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(31863) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(31863) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(31883) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(31883) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(32049) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(34523) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(34669) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(34669) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(34669) : error 017: undefined symbol "strtok"
D:\netbook\samp03e_svr_RC4_win32\gamemodes\mode.pwn(34669) : fatal error 107: too many error messages on one line



Re: 0.3e strtok problem - Joshb93 - 25.03.2012

Uhh. English?


Re: 0.3e strtok problem - doreto - 25.03.2012

Quote:

Hellу!
Бt akarom rakni a mуdomat 0.3e-re, de amikor lefuttatom, akkor ezeket a hibбkat adja ki:

go to no-english section


Re: 0.3e strtok problem - Erik3333 - 25.03.2012

Repaired


Re: 0.3e strtok problem - Joshb93 - 25.03.2012

Still cant understand what your trying to say.


Re: 0.3e strtok problem - Erik3333 - 25.03.2012

I want to convert the game mode from my 0.3d 0.3e-away.
These errors add up:


Re: 0.3e strtok problem - The DeLuca - 25.03.2012

He wants to compile his script for 0.3e but gets these errors when doing so.


Re: 0.3e strtok problem - Erik3333 - 25.03.2012

Yes.


Re: 0.3e strtok problem - Mike_Peterson - 25.03.2012

paste this @ bottom of urs cript
pawn Код:
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;
    return result;
}



Re: 0.3e strtok problem - Erik3333 - 25.03.2012

Do not write off error, but the server will not start but ...
Код:
[09:38:08] Script[gamemodes/mode.amx]: Run time error 19: "File or function is not found"