[Ajuda] 6 Erro e alguns warninG
#1

pawn Код:
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1303) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1311) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1312) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1343) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1343) : error 004: function "AtualizarChatBubble" is not implemented
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1344) : warning 217: loose indentation
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1349) : error 028: invalid subscript (not an array or too many subscripts): "pAdmin"
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1349) : warning 215: expression has no effect
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1349) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1349) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1349) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
Warning 1303:

pawn Код:
DOF2_SetInt(ReturnFileUser(playerid), "EXP", DOF2_GetInt(ReturnFileUser(playerid), "EXP")+1);
                    format(string, sizeof(string), "| UP | Vocк ganhou +1 de experiкncia! [ %d / 5 ]",DOF2_SetInt(ReturnFileUser(playerid), "EXP"));
Warning 1311 e 1312:

pawn Код:
DOF2_SetInt(ReturnFileUser(playerid), "Level", DOF2_GetInt(ReturnFileUser(playerid), "Level")+1);
                    SetPlayerScore(playerid,DOF2_SetInt(ReturnFileUser(playerid), "Level"));
                    format(string, sizeof(string), "| UP | Vocк juntou 5 experiкncias, e ganhou +1 level. (Level: %d) ",DOF2_SetInt(ReturnFileUser(playerid), "Level"));
Erro 1343

pawn Код:
public AtualizarChatBubble()
{

    for(new x=0; x < MAX_PLAYERS; x++)
    {

        if(pAdmin[x] == 1)
        {

            SetPlayerChatBubble(x, "Moderador(a)", 0xF5CFFFAA, 100.0, 10000);
        }
    }
}
Warning 1344:

pawn Код:
public AtualizarChatBubble()
{

    for(new x=0; x < MAX_PLAYERS; x++)
    {

        if(pAdmin[x] == 1)
        {

            SetPlayerChatBubble(x, "Moderador(a)", 0xF5CFFFAA, 100.0, 10000);
        }
    }
}

Warning e erro 1349 ou seja a linha 1349 й a pAdmin[x] == 1:

pawn Код:
public AtualizarChatBubble()
{

    for(new x=0; x < MAX_PLAYERS; x++)
    {

        if(pAdmin[x] == 1)
        {

            SetPlayerChatBubble(x, "Moderador(a)", 0xF5CFFFAA, 100.0, 10000);
        }
    }
}
Reply
#2

Erro 1343 falta de return o 1344 tambem o ultimo ta faltando algum parametro veja direito nas enum no topo do gm
Reply
#3

Falta o ; no if pAdminx... bom foi isso que percebi o resto eu nгo lembro mais tente botar o ; lб
Reply
#4

Код:
public AtualizarChatBubble()
{

    for(new x=0; x < MAX_PLAYERS; x++);
    {

        if(pAdmin[x] == 1);
        {

            SetPlayerChatBubble(x, "Moderador(a)", 0xF5CFFFAA, 100.0, 10000);
        }
    }
   return 1;
}
Tente isso para ver se tira uns erros ok
Reply
#5

Return no chatbubble?? Cara se nгo sabe oq fala melhor nem responder ao tуpico desculpe-me minha ignorвncia mais return no chatbubble й foda
--' Espero respostas!
Reply
#6

pawn Код:
DOF2_SetInt(ReturnFileUser(playerid), "EXP", DOF2_GetInt(ReturnFileUser(playerid), "EXP")+1);
                    format(string, sizeof(string), "| UP | Vocк ganhou +1 de experiкncia! [ %d / 5 ]",DOF2_GetInt(ReturnFileUser(playerid), "EXP"));
pawn Код:
DOF2_SetInt(ReturnFileUser(playerid), "Level", DOF2_GetInt(ReturnFileUser(playerid), "Level")+1);
                    SetPlayerScore(playerid,DOF2_GetInt(ReturnFileUser(playerid), "Level"));
                    format(string, sizeof(string), "| UP | Vocк juntou 5 experiкncias, e ganhou +1 level. (Level: %d) ",DOF2_GetInt(ReturnFileUser(playerid), "Level"));

Jб disse pra vocк que estб confundindo GetInt com SetInt

E tenta por
pawn Код:
new pAdmin[MAX_PLAYERS];

E agora para de ficar pegando cуdigos de outros GM/FS e colocando no seu GM, depois vim pedir ajuda com os erros. --'
Reply
#7

Entгo retira o return cara vocк ta sendo ignorante mais nгo viu o seu erro? Cara vocк se esqueceu de botar ";" e ainda pediu ajuda nisso E agora ta sendo ignorante, primeiro veja seus erros porque й vocк que tб pedindo ajuda dг
Reply
#8

Humildadeforever obrigado resolveu os warning, ficou esses erros:

error 028: invalid subscript (not an array or too many subscripts): "pAdmin"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

pawn Код:
if(pAdmin[x] == 1)

error 029: invalid expression, assumed zero
error 004: function "AtualizarChatBubble" is not implemented

pawn Код:
public AtualizarChatBubble()
Reply
#9

Topo do GaymiMуde
pawn Код:
new pAdmin[MAX_PLAYERS];
E manda a forward da public AtualizarChatBubble
Reply
#10

Puis

pawn Код:
new pAdmin[MAX_PLAYERS];
Deu 24 erros '-'

pawn Код:
forward AtualizarChatBubble();
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)