02/11/2020 11:12
Bom venho em meio desse poste pede uma ajuda a vcs pois tentei de varia maneiras e não conseguir resolver esses erros.
E um sistema de Chat por Voz (VOIP) o tal conhecido.
Vou posta o Codigo e os erros.
Sistema VOIP
Erros:
Se poderem mim ajuda agradeço a todos.
> Servidor em Construção <
• TSVR Brasil RPG •
- Em breve -
E um sistema de Chat por Voz (VOIP) o tal conhecido.
Vou posta o Codigo e os erros.
Sistema VOIP
Código:
#include <a_samp>
#include <core>
#include <float>
#include <Pawn.CMD>
#include <sscanf2>
#include <sampvoice>
#include "../include/gl_common.inc"
main() {}
new SV_DLSTREAM:pstream[MAX_PLAYERS] = SV_NULL;
public SV_BOOL:OnPlayerVoice(
SV_UINT:playerid,
SV_PACKET:packet,
SV_UINT:volume
) {
if (pstream[playerid]) sv_send_packet(packet, pstream[playerid]);
return SV_TRUE;
}
public OnPlayerConnect(playerid) {
if (sv_get_version(playerid) == SV_NULL) SendClientMessage(playerid, -1, "SampVoice");
else if (sv_get_version(playerid) < SV_VERSION) SendClientMessage(playerid, -1, "SampVoice");
else {
if (!sv_has_micro(playerid)) SendClientMessage(playerid, -1, "SampVoice");
else {
sv_set_key(playerid, 0x42);
pstream[playerid] = sv_dlstream_create_at_player(playerid);
SendClientMessage(playerid, -1, "SampVoice");
}
}
return 1;
}
public OnPlayerDisconnect(playerid, reason) {
if (pstream[playerid]) sv_stream_delete(pstream[playerid]);
return 1;
}
public OnGameModeInit() {
SetGameModeText("SampVoice: Test Server");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(1);
SetNameTagDrawDistance(40.0);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
SetWeather(2);
SetWorldTime(11);
//AddPlayerClass(0,2495.3438,-1686.2836,13.5140,358.8068,0,0,0,0,0,0);
//AddPlayerClass(270,2517.7124,-1661.4698,14.2494,101.8945,0,0,0,0,0,0);
//AddPlayerClass(269,2498.7837,-1647.8068,13.5532,169.2618,0,0,0,0,0,0);
//AddPlayerClass(107,2486.7397,-1647.0914,14.0703,185.5319,0,0,0,0,0,0);
//AddPlayerClass(271,2465.4194,-1687.7552,13.5140,282.6660,0,0,0,0,0,0);
//AddPlayerClass(106,2498.7837,-1647.8068,13.5532,169.2618,0,0,0,0,0,0);
//AddPlayerClass(105,2498.7837,-1647.8068,13.5532,169.2618,0,0,0,0,0,0);
LoadStaticVehiclesFromFile("vehicles/trains.txt");
LoadStaticVehiclesFromFile("vehicles/pilots.txt");
LoadStaticVehiclesFromFile("vehicles/lv_law.txt");
LoadStaticVehiclesFromFile("vehicles/lv_airport.txt");
LoadStaticVehiclesFromFile("vehicles/lv_gen.txt");
LoadStaticVehiclesFromFile("vehicles/sf_law.txt");
LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
LoadStaticVehiclesFromFile("vehicles/sf_gen.txt");
LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");
LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
LoadStaticVehiclesFromFile("vehicles/bone.txt");
LoadStaticVehiclesFromFile("vehicles/flint.txt");
LoadStaticVehiclesFromFile("vehicles/tierra.txt");
LoadStaticVehiclesFromFile("vehicles/red_county.txt");
return 1;
}
Erros:
Código:
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(12) : error 017: undefined symbol "SV_NULL"
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(12) : error 008: must be a constant expression; assumed zero
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(14) : warning 235: public function lacks forward declaration (symbol "OnPlayerVoice")
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(21) : warning 213: tag mismatch
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(21) : error 017: undefined symbol "sv_send_packet"
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(23) : error 017: undefined symbol "SV_TRUE"
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(23) : warning 213: tag mismatch
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(29) : error 017: undefined symbol "sv_get_version"
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(30) : error 017: undefined symbol "sv_get_version"
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(32) : error 017: undefined symbol "sv_has_micro"
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(34) : error 017: undefined symbol "sv_set_key"
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(35) : error 017: undefined symbol "sv_dlstream_create_at_player"
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(35) : warning 213: tag mismatch
C:\Users\usuario\Desktop\TSVR Brasil\filterscripts\VOIP.pwn(46) : error 017: undefined symbol "sv_stream_delete"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
Se poderem mim ajuda agradeço a todos.
> Servidor em Construção <
• TSVR Brasil RPG •
- Em breve -