[Ajuda] Erros com SetTimer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erros com SetTimer (
/showthread.php?tid=411435)
Erros com SetTimer -
Jumper. - 28.01.2013
Os erros sгo:
pawn Код:
C:\Users\User\Documents\LUCAS\Server Bope\filterscripts\pagamento.pwn(52) : error 017: undefined symbol "playerid"
C:\Users\User\Documents\LUCAS\Server Bope\filterscripts\pagamento.pwn(53) : error 017: undefined symbol "playerid"
C:\Users\User\Documents\LUCAS\Server Bope\filterscripts\pagamento.pwn(55) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
as linhas sгo:
pawn Код:
forward maisexp();
public maisexp()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayerInfo[playerid][pExp] ++;
if(PlayerInfo[playerid][pLevel] == 60)
{
LevelUP(playerid);
}
}
return 1;
}
alguem pode me ajudar?? desde ja grato
Re: Erros com SetTimer -
Gabriel Duarte - 28.01.2013
forward maisexp(playerid);
public maisexp(playerid)
Acho que faltou os argumentos
Re: Erros com SetTimer -
mau.tito - 28.01.2013
Use setTimerEx
e use assum na public
pawn Код:
forward maisexp ( playerid ) ;
public maisexp ( playerid )
Re: Erros com SetTimer -
Jumper. - 28.01.2013
eu, "o burro" coloquei playerid sу na "public" nгo na "forward" , obrigado, compilou =)
Respuesta: Erros com SetTimer -
Parka - 28.01.2013
PHP код:
por isso, se vocк nгo precisa "Bucle"
forward maisexp( playerid );
public maisexp( playerid )
{
PlayerInfo[playerid][pExp] ++;
if(PlayerInfo[playerid][pLevel] == 60)
{
LevelUP(playerid);
}
return 1;
}
no entanto, se vocк fizer isso vocк vai precisar do bucle
forward maisexp();
public maisexp()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayerInfo[i][pExp] ++;
if(PlayerInfo[i][pLevel] == 60)
{
LevelUP(i);
}
}
return 1;
}
Re: Erros com SetTimer -
Maklister - 28.01.2013
So que se vocк estб usando uma loop, invйz de
playerid seria
i
Re: Erros com SetTimer -
@LucasVinicius - 28.01.2013
Nгo tem playerid,nessa public,vocк atй fez um loop!!!!
Й pra usar a var do loop (:
By: My Teacher (SEGREDO)
Re: Erros com SetTimer -
Jumper. - 28.01.2013
ok ok, obrigado !
@EDIT
tenho que estudar um pouco mais sobre loops