21.06.2013, 19:10
Quando eu tiro a include radio da esses errors:
E quando eu coloco a include radio da esse error:
A include radio й essa:
pawn Код:
C:\Users\Analia\Desktop\Teste\gamemodes\BADC.pwn(368) : error 017: undefined symbol "TXT_PlayerJoinedServer"
C:\Users\Analia\Desktop\Teste\gamemodes\BADC.pwn(445) : error 017: undefined symbol "TXT_PlayerLeftServer"
C:\Users\Analia\Desktop\Teste\gamemodes\BADC.pwn(579) : error 017: undefined symbol "DialogRadios"
C:\Users\Analia\Desktop\Teste\gamemodes\BADC.pwn(579) : error 017: undefined symbol "Dialog_Radios"
C:\Users\Analia\Desktop\Teste\gamemodes\BADC.pwn(580) : error 017: undefined symbol "DialogQ"
C:\Users\Analia\Desktop\Teste\gamemodes\BADC.pwn(580) : error 017: undefined symbol "Dialog_Q"
C:\Users\Analia\Desktop\Teste\gamemodes\BADC.pwn(595) : error 017: undefined symbol "Dialog_Neon"
C:\Users\Analia\Desktop\Teste\gamemodes\BADC.pwn(1480) : warning 203: symbol is never used: "PoliceGetsWeapons"
pawn Код:
C:\Users\Analia\Desktop\Teste\gamemodes\BADC.pwn(12) : fatal error 100: cannot read from file: "radio"
pawn Код:
#define MAX_RADIOS 50
#define IsPlayerPlayingMusic(%0) IsPlayerPlayingMusic[%0]
#define StopPlayerRadio(%0) IsPlayerPlayingMusic[%0] = false, StopAudioStreamForPlayer(%0)
#define CloseRadio() CurrentID = 0
native PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0);
native StopAudioStreamForPlayer(playerid);
enum carol
{
Nome_Musica[50],
URL_Musica[230],
Nome_Radio[50]
}
new
bool:IsPlayerPlayingMusic[MAX_PLAYERS],
Radio[MAX_RADIOS][carol],
CurrentID = 0,
idees = 0
;
stock CreateRadioList(ListName[])
{
format(Radio[idees][Nome_Radio], MAX_RADIOS, ListName);
CurrentID = idees;
return idees++;
}
stock AddMusicInRadio(music_name[], music_url[])
{
format(Radio[CurrentID][Nome_Musica], strlen(music_name)+3, music_name);
format(Radio[CurrentID][URL_Musica], strlen(music_name)+3, music_url);
return true;
}
stock GetRadioIdFromName(nameee[])
{
for(new i; i < MAX_RADIOS; ++i)
{
if(!strcmp(Radio[i][Nome_Radio], nameee, true))
{
return i;
}
}
return false;
}
stock GetMusicForName(name[])
{
for(new i = 0; i < MAX_RADIOS; ++i)
{
if(!strcmp(Radio[i][Nome_Musica], name, true))
{
return i;
}
}
return false;
}
stock StartRadioForPlayer(pid, radioid)
{
if(IsPlayerPlayingMusic(pid)) StopPlayerRadio(pid);
static Float: pooos[3], A_string[128];
GetPlayerPos(pid, pooos[0], pooos[1], pooos[2]);
PlayAudioStreamForPlayer(pid, Radio[radioid][URL_Musica], pooos[0], pooos[1], pooos[2], 50.0, 0);
format(A_string, sizeof(A_string),"Vocк estб escutando %s, URL: %s", Radio[radioid][Nome_Musica],Radio[radioid][URL_Musica]);
SendClientMessage(pid, -1, A_string);
return IsPlayerPlayingMusic[pid] = true, true;
}