6 Erro e alguns warninG -
Bruninho_step - 23.09.2012
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);
}
}
}
Re: 6 Erro e alguns warninG -
Coreia - 23.09.2012
Erro 1343 falta de return o 1344 tambem o ultimo ta faltando algum parametro veja direito nas enum no topo do gm
Re: 6 Erro e alguns warninG -
lucasfr1425 - 23.09.2012
Falta o ; no if pAdminx... bom foi isso que percebi o resto eu nгo lembro mais tente botar o ; lб
Re: 6 Erro e alguns warninG -
lucasfr1425 - 23.09.2012
Код:
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
Re: 6 Erro e alguns warninG -
Bruninho_step - 23.09.2012
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!
Re: 6 Erro e alguns warninG -
humildadeforever - 23.09.2012
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
E agora para de ficar pegando cуdigos de outros GM/FS e colocando no seu GM, depois vim pedir ajuda com os erros. --'
Re: 6 Erro e alguns warninG -
lucasfr1425 - 23.09.2012
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г
Re: 6 Erro e alguns warninG -
Bruninho_step - 23.09.2012
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
error 029: invalid expression, assumed zero
error 004: function "AtualizarChatBubble" is not implemented
pawn Код:
public AtualizarChatBubble()
Re: 6 Erro e alguns warninG -
humildadeforever - 23.09.2012
Topo do GaymiMуde
E manda a forward da public AtualizarChatBubble
Re: 6 Erro e alguns warninG -
Bruninho_step - 23.09.2012
Puis
Deu 24 erros '-'
pawn Код:
forward AtualizarChatBubble();