[Ajuda] Bug - 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] Bug (
/showthread.php?tid=419720)
Bug -
Th4 L&noN! - 02.03.2013
Galera de uma hora pra outra bugo nгo sei o que tipo
um exemplo:
pawn Код:
if(response == 0)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ADM!");
Kick(playerid);
return 1;
}
Ele nгo estб aparecendo a mensagem estб sу kickando e nao aparece a msg antes de kickar
Outro Exemplo Na Hora de Logar no Server:
pawn Код:
SendClientMessage(playerid, COLOR_GREY, "Vocк Estб Banido!");
Ban(playerid);
Nгo aparece a MSG nem nada
apenas aparece Server Closed Connection!
QUE BUG SER ESSE?
Versгo do SAMP 0.3x RC1-2
Essas MSG estгo no OnDialogResponse
Re: Bug -
SeV_ - 02.03.2013
pelo que eu saiba ate agora й um bug do sa-mp. vou ver se tem solucao e ai posto aki.
Re: Bug -
Delete_ - 02.03.2013
Nгo й bug. O prуprio Kalcor que modificou o Kick e Ban e bla, bla e bla.
Use isso:
PHP код:
#define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
forward Kicka(p); public Kicka(p) {
#undef Kick
Kick(p);
#define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
return 1;
}
//por Paulor
Coloque a Callback no final do GM e define no topo.
Re: Bug -
HumildadeAgain - 02.03.2013
Quote:
Originally Posted by delete
Nгo й bug. O prуprio Kalcor que modificou o Kick e Ban e bla, bla e bla.
Use isso:
PHP код:
#define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
forward Kicka(p); public Kicka(p) {
#undef Kick
Kick(p);
#define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
return 1;
}
//por Paulor
Coloque a Callback no final do GM e define no topo.
|
Vocк que fez?
Re: Bug -
Delete_ - 02.03.2013
PHP код:
#define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
forward Kicka(p); public Kicka(p) {
#undef Kick
Kick(p);
#define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
return 1;
}
//por Paulor
//por Paulor
//por Paulor
Re: Bug -
Nill.Oliveira - 02.03.2013
pawn Код:
//In order to display a message (eg. reason) for the player before the connection is closed you have to use a delay:
forward KickPublic(playerid);
public KickPublic(playerid) { Kick(playerid); }
stock KickWithMessage(playerid, message[])
{
SendClientMessage(playerid, 0xFF4444FF, message);
SetTimerEx("KickPublic", 1000, 0, "d", playerid); //Delay of 1 second before kicking the player so he recieves the message
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/kickme", true) == 0)
{
//Kicks the player who the executed this command
KickWithMessage(playerid, "You have been kicked.");
return 1;
}
return 0;
}
//by Kye
Kick - SA-MP Wiki
Re: Bug -
paulor - 02.03.2013
http://forum.sa-mp.com/showpost.php?...postcount=2486
Com a versгo do Ban agora!