Jump to content
  • 0

Problema erori compile


dandrew12

Question

Cand dau compile imi da erorile acestea:

[pawn]

(13944) : error 021: symbol already defined: "Streamer_OnPlayerEnterRaceCP"

(32844) : error 021: symbol already defined: "strtok"

(32859) : error 047: array sizes do not match, or destination array is too small[/pawn]

Uitati liniile:

[pawn]13943    public OnPlayerEnterRaceCheckpoint(playerid)

13944    {

13945    return 1;

13946    }[/pawn]

[pawn]strtok(const string[], &index)

32844  {

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;

32859 return result;

}[/pawn]

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.