Ajuda com a Funзao TASK -
LucasOBGS - 28.02.2019
Meu erro
Код:
C:\Users\LucasRodrigues\Desktop\GM BRNM\gamemodes\BRNM.pwn(80219) : error 010: invalid function or declaration
Codigo Onde estб dando Erro
Код:
task OnplayerAtualizador[1000]() //Linha do Erro
{
foreach(Player, playerid)
{
if(!PlayerLogado[playerid])continue;
if(PlayerInfo[playerid][pTitulo]){
SetPlayerChatBubble(playerid, getPlayerTitulo(playerid), 0xFFA500FF, 20.0, 2000);
}
return 1;
}
Minhas Includes
Код:
#include < a_samp >
#include < a_http >
#include < core >
#include < float >
#include < time >
#include < file >
#include < a_objects >
#include < DOF2 >
#include < streamer >
#include < seif_walk >
#include < servermoneyGM >
#include < a_actor >
#include < YSI/y_timers>
Como Resolver ?
Re: Ajuda com a Funзao TASK -
ipsLuan - 28.02.2019
Veja se funciona assim:
PHP код:
task OnplayerAtualizador[1000]()
{
foreach(Player, playerid)
{
if(!PlayerLogado[playerid]) continue;
if(PlayerInfo[playerid][pTitulo])
{
SetPlayerChatBubble(playerid, getPlayerTitulo(playerid), 0xFFA500FF, 20.0, 2000);
}
}
return 1;
}
Ao invйs do loop, vocк pode usar
ptask tambйm, caso opte.
Re: Ajuda com a Funзao TASK -
LucasOBGS - 28.02.2019
Agora, ele me apresenta outro erro, alem daquele
C:\Users\LucasRodrigues\Desktop\GM BRNM\gamemodes\BRNM.pwn(80219) : error 010: invalid function or declaration
C:\Users\LucasRodrigues\Desktop\GM BRNM\gamemodes\BRNM.pwn(80221) : error 010: invalid function or declaration
Re: Ajuda com a Funзao TASK -
ipsLuan - 28.02.2019
Quais as linhas?
Seja mais especнfico.
Re: Ajuda com a Funзao TASK -
LucasOBGS - 28.02.2019
task OnplayerAtualizador[1000]() <<< NESSA LINHA
{
foreach(Player, playerid) << NESSA LINHA
{
if(!PlayerLogado[playerid]) continue;
if(PlayerInfo[playerid][pTitulo])
{
SetPlayerChatBubble(playerid, getPlayerTitulo(playerid), 0xFFA500FF, 20.0, 2000);
}
}
return 1;
}