SA-MP Forums Archive
[Ajuda] Erros no GM - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erros no GM (/showthread.php?tid=396243)



Erros no GM - [NVC]iTrevaS - 29.11.2012

Galera, o meu GM estб dando esses erros, e nгo sei como resolver, serб que tem como vocкs me ajudarem ?

pawn Код:
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3124) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3125) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3126) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3127) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3128) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3129) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3130) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3123) : warning 204: symbol is assigned a value that is never used: "index"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3876) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3876) : error 033: array must be indexed (variable "cmd")
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3960) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(3960) : error 033: array must be indexed (variable "tmp")
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4058) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4058) : error 033: array must be indexed (variable "tmp")
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4175) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4175) : error 033: array must be indexed (variable "tmp")
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4219) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4219) : error 033: array must be indexed (variable "tmp")
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4279) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4279) : error 033: array must be indexed (variable "tmp")
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4650) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4650) : error 033: array must be indexed (variable "tmp")
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4763) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4763) : error 033: array must be indexed (variable "tmp")
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4865) : error 017: undefined symbol "strtok"
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(4865) : error 033: array must be indexed (variable "tmp")
C:\Users\Trevas\Downloads\Virtual World\gamemodes\BVW.pwn(5020) : error 017: undefined symbol "strtok"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.



Re: Erros no GM - _Jizzy_ - 30.11.2012

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;
}
no final do seu script


Respuesta: Erros no GM - [NVC]iTrevaS - 30.11.2012

Vlw Jizzy.

+REP