- 112
- 18
Что не так?
Структура пакта:
Ошибка:
error 017: undefined symbol "authkeyv"
error 080: unknown symbol, or not a constant symbol (symbol "authkeyv")
нашел ответ. https://github.com/katursis/Pawn.RakNet/wiki/Reading-ID_AUTH_KEY
Код:
IPacket:12(playerid, BitStream:bs)
{
print("packet 12 recieved");
new authKey[PR_INCOMING_PACKET];
BS_IgnoreBits(bs, 8);
print(BS_ReadValue(bs, PR_STRING, authKey[authkeyv], sizeof(authKey[authkeyv)));
return 1;
}
str:
struct stAuthKey
{
uint8_t packetId;
uint8_t keyLength;
char[] key;
};
error 017: undefined symbol "authkeyv"
error 080: unknown symbol, or not a constant symbol (symbol "authkeyv")
нашел ответ. https://github.com/katursis/Pawn.RakNet/wiki/Reading-ID_AUTH_KEY
Последнее редактирование: