19.09.2015, 22:18
(
Последний раз редактировалось tiiP; 20.09.2015 в 07:18.
)
PROBLEMA RESOLVIDO!
Fala galera da fуrum SAMP!
Eu estava editando um GM, daн precisei botar uma DIALOG da versгo 0.3.7.
Botei e deu erro, mas daн pensei: "Essa GM й velha, tenho que atualizar a pasta pawno"
Peguei a atual, e joguei pra minha, substituindo todos os arquivos.
Porйm agora, acontece isso:
Atй ai tudo bem, procurei por strtok, e deram um cуdigo para botar no final da GM:
Quando botei, e compilei, ele apareceu os seguintes erros:
Alguйm sabe como arrumar?
Atensionamente,
TiiP
Fala galera da fуrum SAMP!
Eu estava editando um GM, daн precisei botar uma DIALOG da versгo 0.3.7.
Botei e deu erro, mas daн pensei: "Essa GM й velha, tenho que atualizar a pasta pawno"
Peguei a atual, e joguei pra minha, substituindo todos os arquivos.
Porйm agora, acontece isso:
Код:
C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(3492) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(3493) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(3494) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(3495) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(3496) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(3497) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(3498) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(3507) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(3508) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(3509) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(3506) : warning 204: symbol is assigned a value that is never used: "index" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4232) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4232) : error 033: array must be indexed (variable "cmd") C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4317) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4317) : error 033: array must be indexed (variable "tmp") C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4359) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4359) : error 033: array must be indexed (variable "tmp") C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4623) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4623) : error 033: array must be indexed (variable "tmp") C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4661) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4661) : error 033: array must be indexed (variable "tmp") C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4667) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4667) : error 033: array must be indexed (variable "tmp") C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4704) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4704) : error 033: array must be indexed (variable "tmp") C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4725) : error 017: undefined symbol "strtok" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4725) : error 033: array must be indexed (variable "tmp") Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
Код:
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; }
Код:
C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(4359) : warning 202: number of arguments does not match definition C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(5711) : error 017: undefined symbol "set" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(5717) : error 017: undefined symbol "set" C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(8054) : warning 202: number of arguments does not match definition C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(8082) : warning 202: number of arguments does not match definition C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(13239) : warning 217: loose indentation C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(13245) : error 027: invalid character constant C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(13245) : error 027: invalid character constant C:\Program Files (x86)\Pasta\gamemodes\blp1.pwn(13260) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Atensionamente,
TiiP