- 0
Problema erori compile
-
Similar Content
-
- 2 answers
- 650 views
-
Problema turf
By Soryn.,
- 3 answers
- 415 views
-
- 0 replies
- 159 views
-
- 2 replies
- 332 views
-
- 1 reply
- 204 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
dandrew12
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