[Ajuda] ERRO
#1

Alguem sabe porque esta dando esse erro e como eu faзo para resolve lo?

C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(1307) : error 017: undefined symbol "tmp"
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(1307) : error 017: undefined symbol "strtok"
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(130 : error 017: undefined symbol "tmp"
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(1309) : error 017: undefined symbol "tmp"
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(1311) : error 017: undefined symbol "tmp"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.



Linhas:

1304: if(strcmp(cmdtext, "/skin", true) == 0)
1305: {
1306: new SkiN;
1307: tmp = strtok(cmdtext, idx);
1308: if(!strlen(tmp)) return SendClientMessage(playerid, -1, "[USO CORRETO] /skin [skinid]");
1309: if((strval(tmp) < 0) || (strval(tmp) > 299)) return SendClientMessage(playerid, 0xFF230AFF, "[ERRO] O ID das skins sгo de 0 atй 299!");
1310: SendClientMessage(playerid, -1, "[INFO] Skin alterado!");
1311: SkiN= strval(tmp);
1312: SetPlayerSkin(playerid, SkiN);
1313: return 1;
1314: }
Reply
#2

Cade a new tmp ?
Reply
#3

Quote:
Originally Posted by SepZ
Посмотреть сообщение
Cade a new tmp ?
coloquei mais nao adianto nada..

C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(130 : error 017: undefined symbol "strtok"
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(1309) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(1310) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(1312) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(130 : warning 204: symbol is assigned a value that is never used: "tmp"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

Coloca no final do GM:

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
#5

Quote:
Originally Posted by [BOPE]Seu._.Madruga
Посмотреть сообщение
Coloca no final do GM:

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;

ae mano deu so esse aqui agr

C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(132 : error 017: undefined symbol "idx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Linha: 1328: tmp = strtok(cmdtext, idx);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)