Jump to content

pomoc s chybami při kompilaci


martuyyy

Recommended Posts

Dobrý den,při kompilování na mě vyskočilo toto,a já ani za mák nevím co s tím je :/

 

D:\XX\stunt.pwn(205) : error 021: symbol already defined: "strtok"
D:\XX\stunt.pwn(220) : error 047: array sizes do not match, or destination array is too small
 
na řádku 205 je { (řádek před ním je toto)
 
strtok(const string[], &index)
 
na řádku 20 je
 
return result;
 
 
hledal jsem a nejspíš by to mělo být něco s includy (mám tyto)
 
#include <a_samp>
#include <F_AntiCheat>
#include <core>
#include <float>
#include <CPLoader>
#include <Seifader>

 

Link to comment
Share on other sites

celou funkci strtok u radku 205 si odstran. "symbol already defined: "strtok"" ="symbol již nadefinován: "strtok""


ohledne radku 220

v jaky funkci je ten return result;?

Link to comment
Share on other sites

ta část vypadá takto

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;
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...