[Ajuda] Error gamemode
#1

Quando eu tiro a include radio da esses errors:
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"
E quando eu coloco a include radio da esse error:
pawn Код:
C:\Users\Analia\Desktop\Teste\gamemodes\BADC.pwn(12) : fatal error 100: cannot read from file: "radio"
A include radio й essa:
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;
}
Reply
#2

Ajuda '-'
Reply
#3

Soluзгo:

Pare de baixar gamemodes da net
Reply
#4

@Edit
Reply
#5

Й super fбcil de se arrumar,mas nгo vou...sу porque xingou.
Reply
#6

Quote:
Originally Posted by ThiagoMK
Посмотреть сообщение
feliphe cala boca nгo quer ajudar nгo comenta fila da ****
Filho dessa merda ai й tu colega

Depois que cagueta um animal desse eu que sou ruim.
Reply
#7

: \
Reply
#8

Quote:
Originally Posted by ThiagoMK
Посмотреть сообщение
Quando eu tiro a include radio da esses errors:
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"
E quando eu coloco a include radio da esse error:
pawn Код:
C:\Users\Analia\Desktop\Teste\gamemodes\BADC.pwn(12) : fatal error 100: cannot read from file: "radio"
A include radio й essa:
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;
}
Tente ter o include "radio" na sua pasta de includes. Ou coloque as variбveis que o include tem (ex: if DialogRadios) no seu gamemode.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)