[AJUDA] Erro com Progama Pawno
#1

Olб, vim aqui hoje pedir ajuda de vocкs, porque vem acontecido um erro muito estranho comigo. O Pawno ta copilando normal e tudo, mais tem um problema. Quando eu vou criar um portгo por comando seguindo este Tutorial: Click Aqui

Eu faзo tudo certinho, como dito no Tutorial, mas na hora de copilar o Pawno da este erro muito estranho:



Depois que clico em FECHAR:



Por favor me ajudem
Reply
#2

Quote:
Originally Posted by Hashtag
Посмотреть сообщение
Olб, vim aqui hoje pedir ajuda de vocкs, porque vem acontecido um erro muito estranho comigo. O Pawno ta copilando normal e tudo, mais tem um problema. Quando eu vou criar um portгo por comando seguindo este Tutorial: Click Aqui

Eu faзo tudo certinho, como dito no Tutorial, mas na hora de copilar o Pawno da este erro muito estranho:

Por favor me ajudem
Isso Aconteзer quando vocк Faz uma Coisa que nao faz Sentido e nгo indetificar o Comando que vocк estб Fazendo, Melhor jeito e vocк Procurar outro Tutorial Encinando Melhor a Criar Portгo !!
Espero Ter ajudado !
Reply
#3

Ok, vlw. Se alguem pode-se me ajudar dizendo um tutorial bom de como Criar portхes eu agradeceria, porque esse atй agora foi o melhor que achei :/
Reply
#4

Quote:
Originally Posted by Hashtag
Посмотреть сообщение
Ok, vlw. Se alguem pode-se me ajudar dizendo um tutorial bom de como Criar portхes eu agradeceria, porque esse atй agora foi o melhor que achei :/
Ver se esse te ajuda a Criar :
Link: https://sampforum.blast.hk/showthread.php?tid=246409

Ajudei Vocк? Reputaзгo pra me Ajuda !
Reply
#5

Man sйrio, tem que ser algum problema com o Pawno, simplismente TODOS os tutoriais de criar portхes que eu ja fiz (uns 10). TODOS deram este mesmo problema ¬¬
Reply
#6

Posta os comandos que aparece no print, o /dia e o debaixo
Reply
#7

Nгo sei noque isso vai ajudar, mais ta ae:

pawn Код:
///////////////////////////////////////////////////////////// DIA

if(strcmp(cmdtext, "/dia", true) == 0)
{
    new Nomep[MAX_PLAYER_NAME], stg[80];
    GetPlayerName(playerid, Nomep, sizeof(Nomep));
    if(IsPlayerAdmin(playerid))
    {
        format(stg, sizeof(stg), "[Stap] {A4A5A6}O Admin %s alterou o tempo", Nomep);
        SendClientMessageToAll(Pink, stg);
        SetWorldTime(12);
    }
    else return SendClientMessage(playerid, Pink, "[Stap] {A4A5A6}Vocк nгo tem permissгo");
}

////////////////////////////////////////////////////////// ANUNCIO

if(strfind(cmdtext, "/anuncio", true) == 0)
    {
        if(cmdtext[8] == 32 || cmdtext[8] == 0)
        {
            if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Pink, "[Stap] {1EFF00}Vocк nгo tem permissгo");
            if(cmdtext[8] != 32) return SendClientMessage(playerid, Pink, "Use: {A4A5A6}/anuncio [texto]");
            strdel(cmdtext, 0, 9);
            format(cmdtext, 128, "Alpha Police Team: {A4A5A6}%s", cmdtext);
            SendClientMessageToAll(Pink, cmdtext);
            return true;
        }
    }
return 1;
}
Na moral msm, ja desisti de fazer Portхes nгo consigo de forma alguma, todos os tutoriais que eu sigo dгo este problema. E й so com os portхes, nenhum outro ja deu :/
Reply
#8

Quote:
Originally Posted by Hashtag
Посмотреть сообщение
Nгo sei noque isso vai ajudar, mais ta ae:

pawn Код:
///////////////////////////////////////////////////////////// DIA

if(strcmp(cmdtext, "/dia", true) == 0)
{
    new Nomep[MAX_PLAYER_NAME], stg[80];
    GetPlayerName(playerid, Nomep, sizeof(Nomep));
    if(IsPlayerAdmin(playerid))
    {
        format(stg, sizeof(stg), "[Stap] {A4A5A6}O Admin %s alterou o tempo", Nomep);
        SendClientMessageToAll(Pink, stg);
        SetWorldTime(12);
    }
    else return SendClientMessage(playerid, Pink, "[Stap] {A4A5A6}Vocк nгo tem permissгo");
}

////////////////////////////////////////////////////////// ANUNCIO

if(strfind(cmdtext, "/anuncio", true) == 0)
    {
        if(cmdtext[8] == 32 || cmdtext[8] == 0)
        {
            if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Pink, "[Stap] {1EFF00}Vocк nгo tem permissгo");
            if(cmdtext[8] != 32) return SendClientMessage(playerid, Pink, "Use: {A4A5A6}/anuncio [texto]");
            strdel(cmdtext, 0, 9);
            format(cmdtext, 128, "Alpha Police Team: {A4A5A6}%s", cmdtext);
            SendClientMessageToAll(Pink, cmdtext);
            return true;
        }
    }
return 1;
}
Na moral msm, ja desisti de fazer Portхes nгo consigo de forma alguma, todos os tutoriais que eu sigo dгo este problema. E й so com os portхes, nenhum outro ja deu :/
Esse ultimo return 1 ai й o que fecha a public OnPlayerCommandText nй? Se for tente trocб-lo por return 0;
Reply
#9

pawn Код:
if(strcmp(cmdtext, "/dia", true) == 0)
{
    new Nomep[MAX_PLAYER_NAME], stg[80];
    GetPlayerName(playerid, Nomep, sizeof(Nomep));
    if(IsPlayerAdmin(playerid))
    {
        format(stg, sizeof(stg), "[Stap] {A4A5A6}O Admin %s alterou o tempo", Nomep);
        SendClientMessageToAll(Pink, stg);
        SetWorldTime(12);
    }
    else return SendClientMessage(playerid, Pink, "[Stap] {A4A5A6}Vocк nгo tem permissгo");
}

////////////////////////////////////////////////////////// ANUNCIO

if(strfind(cmdtext, "/anuncio", true) == 0)
    {
        if(cmdtext[8] == 32 || cmdtext[8] == 0)
        {
            if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Pink, "[Stap] {1EFF00}Vocк nгo tem permissгo");
            if(cmdtext[8] != 32) return SendClientMessage(playerid, Pink, "Use: {A4A5A6}/anuncio [texto]");
            strdel(cmdtext, 0, 9);
            format(cmdtext, 128, "Alpha Police Team: {A4A5A6}%s", cmdtext);
            SendClientMessageToAll(Pink, cmdtext);
            return 1;
        }
    }
Usa.. correto ae '-'
Reply
#10

Quote:
Originally Posted by [LF]PlaYer
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext, "/dia", true) == 0)
{
    new Nomep[MAX_PLAYER_NAME], stg[80];
    GetPlayerName(playerid, Nomep, sizeof(Nomep));
    if(IsPlayerAdmin(playerid))
    {
        format(stg, sizeof(stg), "[Stap] {A4A5A6}O Admin %s alterou o tempo", Nomep);
        SendClientMessageToAll(Pink, stg);
        SetWorldTime(12);
    }
    else return SendClientMessage(playerid, Pink, "[Stap] {A4A5A6}Vocк nгo tem permissгo");
}

////////////////////////////////////////////////////////// ANUNCIO

if(strfind(cmdtext, "/anuncio", true) == 0)
    {
        if(cmdtext[8] == 32 || cmdtext[8] == 0)
        {
            if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Pink, "[Stap] {1EFF00}Vocк nгo tem permissгo");
            if(cmdtext[8] != 32) return SendClientMessage(playerid, Pink, "Use: {A4A5A6}/anuncio [texto]");
            strdel(cmdtext, 0, 9);
            format(cmdtext, 128, "Alpha Police Team: {A4A5A6}%s", cmdtext);
            SendClientMessageToAll(Pink, cmdtext);
            return 1;
        }
    }
Usa.. correto ae '-'
Usa.. este -.-'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)