[AJUDA] Qual funзгo? - 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] Qual funзгo? (
/showthread.php?tid=355033)
[AJUDA] Qual funзгo? -
Kan - 28.06.2012
Baixei a sampQueryAPI para tentar criar um painel de controle, so que nao achei a funзao que faz o servidor reiniciar, ligar e desligar.
Exemplo: eu coloquei 3 buttons no painel, sendo eles: ligar, desligar e reiniciar
Quando clicar em ligar iria executar a funзao que liga o samp-server.exe
Quando clicar em desligar iria desligar o samp-server.exe
e Reiniciar iria reiniciar o samp-server.exe
Como faзo isso?
Re: [AJUDA] Qual funзгo? -
.FuneraL. - 28.06.2012
Quote:
Originally Posted by Kan
Baixei a sampQueryAPI para tentar criar um painel de controle, so que nao achei a funзao que faz o servidor reiniciar, ligar e desligar.
Exemplo: eu coloquei 3 buttons no painel, sendo eles: ligar, desligar e reiniciar
Quando clicar em ligar iria executar a funзao que liga o samp-server.exe
Quando clicar em desligar iria desligar o samp-server.exe
e Reiniciar iria reiniciar o samp-server.exe
Como faзo isso?
|
Talvez , Colocando a Funзгo de Desligar e Logo Apуs Ligar Novamente.
Re: [AJUDA] Qual funзгo? -
Brazuca[]s - 28.06.2012
Ja darei edit!
Re: [AJUDA] Qual funзгo? -
Kan - 28.06.2012
OK, no aguardo
Re: [AJUDA] Qual funзгo? -
paulor - 28.06.2012
Se nгo me engano a 'sampQueryAPI' nгo serve para abrir, fechar e reiniciar o server e sim para pegar dados dos Players e do Server.
Para isso vocк tem que usar:
http://www.php.net/manual/pt_BR/function.exec.php