[Ajuda] Erros com SetTimer
#1

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
Reply
#2

forward maisexp(playerid);
public maisexp(playerid)


Acho que faltou os argumentos
Reply
#3

Use setTimerEx
e use assum na public


pawn Код:
forward maisexp ( playerid ) ;
public maisexp ( playerid )
Reply
#4

eu, "o burro" coloquei playerid sу na "public" nгo na "forward" , obrigado, compilou =)
Reply
#5

PHP код:
por issose vocк nгo precisa "Bucle"
forward maisexpplayerid );
public 
maisexpplayerid  )
{
        
PlayerInfo[playerid][pExp] ++;
        if(
PlayerInfo[playerid][pLevel] == 60)
        {
            
LevelUP(playerid);
        }
    return 
1;
}
 
no entantose vocк fizer isso vocк vai precisar do bucle
forward maisexp
();
public 
maisexp()
{
    for(new 
0MAX_PLAYERSi++)
    {
        
PlayerInfo[i][pExp] ++;
        if(
PlayerInfo[i][pLevel] == 60)
        {
            
LevelUP(i);
        }
    }
    return 
1;

Reply
#6

So que se vocк estб usando uma loop, invйz de playerid seria i
Reply
#7

Nгo tem playerid,nessa public,vocк atй fez um loop!!!!
Й pra usar a var do loop (:

By: My Teacher (SEGREDO)
Reply
#8

ok ok, obrigado !

@EDIT
tenho que estudar um pouco mais sobre loops
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)