[Ajuda] 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] Settimer (
/showthread.php?tid=560613)
Settimer -
FabioGTP - 29.01.2015
Se eu uso SetTimer normal nгo da warning agora quando uso SetTimerEx da warning esse
pawn Код:
warning 202: number of arguments does not match definition
Re: Settimer -
Kuddy - 29.01.2015
Poste a maneira que vocк estб tentando usar ambos para podermos te ajudar. Os parвmetros das duas funзхes nгo sгo iguais.
Re: Settimer -
FabioGTP - 29.01.2015
pawn Код:
SetTimer("MITO", 1000, true);
й para chatbublle mais quero usar SetTimerEx
Re: Settimer -
Cidiei - 29.01.2015
Quote:
Originally Posted by FabioGTP
pawn Код:
SetTimer("MITO", 1000, true);
й para chatbublle mais quero usar SetTimerEx
|
Passe a callback da funзгo chamada no timer...
Re: Settimer -
FabioGTP - 29.01.2015
Quote:
Originally Posted by Cidiei
Passe a callback da funзгo chamada no timer...
|
pawn Код:
if(Player[i][pAdmin] > 1)
{
SetPlayerChatBubble(i, "Administrador", -1, 100.0, 10000);
}
pawn Код:
forward Administrador();
public Administrador()
Re: Settimer -
Cidiei - 29.01.2015
pawn Код:
SetTimer("MITO", 1000, 1);//Caso queira em Settimer
SetTimerEx("MITO",1000,1,"d",playerid);//Caso queira em SetTimerex
Tenta deixar assim.
Re: Settimer -
FabioGTP - 29.01.2015
Quote:
Originally Posted by Cidiei
pawn Код:
SetTimer("MITO", 1000, 1);//Caso queira em Settimer SetTimerEx("MITO",1000,1,"d",playerid);//Caso queira em SetTimerex
Tenta deixar assim.
|
pawn Код:
error 017: undefined symbol "playerid"
#define playerid

??
Re: Settimer -
JonathanFeitosa - 29.01.2015
https://sampforum.blast.hk/showthread.php?tid=557107
Re: Settimer -
FabioGTP - 29.01.2015
Quote:
Originally Posted by JonathanFeitosa
|
Para eu usar no chat bubble como ficaria? pode me ajudar
Re: Settimer -
MultiKill - 29.01.2015
Para que usar um timer? Coloca logo depois que o jogador logar no servidor.
Exemplo:
pawn Код:
public OnPlayerSpawn(playerid)
{
if(Player[playerid][pAdmin] > 1)
{
SetPlayerChatBubble(playerid, "Administrador", -1, 100.0, 10000);
}
return 1;
}