ERRO -
maxblaya01 - 03.09.2015
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: }
Re: ERRO -
SepZ - 03.09.2015
Cade a
new tmp ?
Re: ERRO -
maxblaya01 - 03.09.2015
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.
Re: ERRO -
[BOPE]Seu._.Madruga - 03.09.2015
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;
}
Re: ERRO -
maxblaya01 - 03.09.2015
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);