Jump to content
  • 0

cum rezolv aceste erori?


Gaby29

Question

[pawn]D:\Jocuri\SAMP\[Acest URL nu trebuie sa apara aici] RPG Romania\pawno\include\streamer.inc(400) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")

D:\Jocuri\SAMP\[Acest URL nu trebuie sa apara aici] RPG Romania\gamemodes\sZn.pwn(14299) : error 021: symbol already defined: "strtok"

D:\Jocuri\SAMP\[Acest URL nu trebuie sa apara aici] RPG Romania\gamemodes\sZn.pwn(14314) : error 047: array sizes do not match, or destination array is too small

D:\Jocuri\SAMP\[Acest URL nu trebuie sa apara aici] RPG Romania\gamemodes\sZn.pwn(19023) : warning 219: local variable "mod" shadows a variable at a preceding level

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.[/pawn]

14298-14315: [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;

}[/pawn]

19023 -19025:[pawn] new mod = 100;

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))[/pawn]

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

sterge

[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;

}[/pawn]

si pune

[pawb]mod = 100;[/pawn]

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

uite ce mi-a dat :

[pawn]D:\Jocuri\SAMP\[Acest URL nu trebuie sa apara aici] RPG Romania\pawno\include\streamer.inc(400) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")

D:\Jocuri\SAMP\[Acest URL nu trebuie sa apara aici] RPG Romania\gamemodes\sZn.pwn(14298) : error

010: invalid function or declaration

D:\Jocuri\SAMP\[Acest URL nu trebuie sa apara aici] RPG Romania\gamemodes\sZn.pwn(19006) : warning 219: local variable "mod" shadows a variable at a preceding level

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

[/pawn]

14298:[pawn]mod = 100;[/pawn]

19006-19008 :[pawn]new mod = 100;

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))[/pawn]

400: [pawn]forward Eventd();[/pawn]

EDIT: Am sters[pawn] mod = 100; [/pawn] si acuma mi sa compilat doar ca mai am acele 2 erori.

Link to comment
Share on other sites

Variabila "mod" exista de mai multe ori in script iar primul avertizment iti spune ca, callback-ul OnPlayerEnterRaceCheckpoint este de mai multe ori.Incearca sa faci update la "streamer", daca nici asta nu rezolva primul avertizment, cauta callback-ul in plus si uneste-l cu celalalt sau sterge-l.

Link to comment
Share on other sites

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.