Jump to content
  • 0

Problema strtock!


MMC3

Question

Ciao erorile astea ma enerveaza la culme habar nu am ce sa le fac ajutatima si pe mine va rog!...

[pawn]C:\Users\MMC3\Desktop\Jocuri MMC\Romani Ultimate Stunt\Romania Ultimate Stunt\gamemodes\RO.pwn(214) : warning 201: redefinition of constant/macro (symbol "GREEN")

C:\Users\MMC3\Desktop\Jocuri MMC\Romani Ultimate Stunt\Romania Ultimate Stunt\gamemodes\RO.pwn(1212) : error 021: symbol already defined: "strtok"

C:\Users\MMC3\Desktop\Jocuri MMC\Romani Ultimate Stunt\Romania Ultimate Stunt\gamemodes\RO.pwn(1227) : error 047: array sizes do not match, or destination array is too small

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.[/pawn]

liniile

[pawn]1212: {

1227: return result;[/pawn]

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

[pawn]public Hide(target)

{

return TextDrawHideForPlayer(target, MsgBox);

}

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] astai

Link to comment
Share on other sites

[pawn]C:\Users\MMC3\Desktop\Jocuri MMC\Romani Ultimate Stunt\Romania Ultimate Stunt\gamemodes\RO.pwn(214) : warning 201: redefinition of constant/macro (symbol "GREEN")

C:\Users\MMC3\Desktop\Jocuri MMC\Romani Ultimate Stunt\Romania Ultimate Stunt\gamemodes\RO.pwn(1212) : error 021: symbol already defined: "strtok"

C:\Users\MMC3\Desktop\Jocuri MMC\Romani Ultimate Stunt\Romania Ultimate Stunt\gamemodes\RO.pwn(1227) : error 047: array sizes do not match, or destination array is too small[/pawn]

"strtok" e definit de doua ori cauta vezi pe unde mai ai

strtok(const string[], &index)

si sterge`l

dupa la a 2-a cauta [pawn]new result[/pawn]

Si pune aici functia

76561198055981270.png

http://devilgaming.ro/forum

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.