[Ajuda] Como resolver estes erros?
#1

pawn Код:
C:\Users\Ricardo\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(10) : error 017: undefined symbol "strtok"
C:\Users\Ricardo\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(13006) : error 017: undefined symbol "udb_RenameUser"
Linha 10:
pawn Код:
#pragma unused strtok
Linha 1306:
pawn Код:
udb_RenameUser(PlayerName(playerid),inputtext);
Reply
#2

Ajuda?
Reply
#3

Funзхes nгo declaradas, deve estar faltando include.
Reply
#4

Quote:
Originally Posted by Juniiro3
Посмотреть сообщение
Funзхes nгo declaradas, deve estar faltando include.
Quais?
Reply
#5

Topo da GM :
pawn Код:
#include <dudb>
E no final :
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;
}
Reply
#6

Quote:
Originally Posted by HatedS
Посмотреть сообщение
Topo da GM :
pawn Код:
#include <dudb>
E no final :
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;
}
Esse erro:
pawn Код:
C:\Users\Ricardo\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(13007) : error 017: undefined symbol "udb_RenameUser"
ainda continua.
Reply
#7

pawn Код:
#define udb_RenameUser
Reply
#8

Quote:
Originally Posted by HatedS
Посмотреть сообщение
pawn Код:
#define udb_RenameUser
Obrigado. +Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)