[Pedido] AJUDA !!
#1

Bom galera parei com samp estou voltando agr alguйm pode me ajuda nesses erros
Код:
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18030) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18030) : error 033: array must be indexed (variable "cmd")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18279) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18279) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18521) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18521) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18531) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18531) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18535) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18535) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18577) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18577) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18587) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18587) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18597) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18597) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18658) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18658) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18668) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18668) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18678) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18678) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(19287) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(19287) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(19378) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(19378) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
LINHA:
PHP код:
cmd strtok(cmdtextidx); 
Reply
#2

PHP код:
stock strtok( const string[ ], &index )
{
    new 
length strlen( string );
    while (( 
index length ) && ( stringindex ] <= ' ' ))
    {
        
index++;
    }
    new 
offset index;
    new 
result20 ];
    while (( 
index length ) && ( stringindex ] > ' ' ) && (( index offset ) < ( sizeofresult ) - )) )
    {
        
resultindex offset ] = stringindex ];
        
index++;
    }
    
resultindex offset ] = EOS;
    return 
result;

Reply
#3

* Obs: Poe esse script no final do seu gamemode, talvez resolva seu problema
PHP код:
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;

Reply
#4

Quote:
Originally Posted by Star01
Посмотреть сообщение
* Obs: Poe esse script no final do seu gamemode, talvez resolva seu problema
PHP код:
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;

continua dando o msm erro
Код:
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18030) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18030) : error 033: array must be indexed (variable "cmd")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18279) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18279) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18521) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18521) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18531) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18531) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18535) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18535) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18577) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18577) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18587) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18587) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18597) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18597) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18658) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18658) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18668) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18668) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18678) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(18678) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(19287) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(19287) : error 033: array must be indexed (variable "tmp")
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(19378) : error 017: undefined symbol "strtok"
C:\Users\Henrique\Downloads\GM\gamemodes\WOF.pwn(19378) : error 033: array must be indexed (variable "tmp")
Reply
#5

Manda o cуdigo...
Reply
#6

PHP код:
    cmd strtok(cmdtextidx); 
PHP код:
    tmp strtok(cmdtextidx); 
Reply
#7

Vк se nгo й as chaves mal identada.
Reply
#8

Pode ser as chaves "{ } " que estгo em lugares errado manda o cуdigo completo.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)