SA-MP Forums Archive
[AJUDA] Conflito entre o filterscripts e o GM! URGENTE - 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] Conflito entre o filterscripts e o GM! URGENTE (/showthread.php?tid=310114)



[AJUDA] Conflito entre o filterscripts e o GM! URGENTE - Skun Fly - 10.01.2012

Boa Tarde.
Se eu coloco filterscripts funciona sу os comandos do filterscript e nгo funciona os comandos do gm da public OnPlayerCommandText.
Mas se eu tirar os filterscripts os comandos do gm da public jб funcionam.
Penso que tenha alguma coisa a ver com a public OnPlayerCommandText pu com os return 0 nгo sei ao certo.
Agredecia ajuda. Muito obrigado!


Re: [AJUDA] Conflito entre o filterscripts e o GM! - sGarfield - 10.01.2012

bote return 1 no final do OnPlayerCommandText do FS.


Re: [AJUDA] Conflito entre o filterscripts e o GM! - Skun Fly - 10.01.2012

Quote:
Originally Posted by sGarfield
Посмотреть сообщение
bote return 1 no final do OnPlayerCommandText do FS.
Ficou na mesma.


Re: [AJUDA] Conflito entre o filterscripts e o GM! URGENTE - Skun Fly - 10.01.2012

OnPlayerCommandText do fs:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	dcmd(v,1,cmdtext);
	dcmd(respawncars,11,cmdtext);
	return 1;
}



Re: [AJUDA] Conflito entre o filterscripts e o GM! URGENTE - BlackCoder - 10.01.2012

retira o return no final da public onplayercommandtext da filterscript


Re: [AJUDA] Conflito entre o filterscripts e o GM! URGENTE - Skun Fly - 10.01.2012

Quote:
Originally Posted by BlackCoder
Посмотреть сообщение
retira o return no final da public onplayercommandtext da filterscript
dб erro ao copilar: warning 209: function "OnPlayerCommandText" should return a value


Re: [AJUDA] Conflito entre o filterscripts e o GM! URGENTE - Byffano Xeddar - 10.01.2012

Retira o FS.


Re: [AJUDA] Conflito entre o filterscripts e o GM! URGENTE - Skun Fly - 10.01.2012

Quote:
Originally Posted by Byffano Xeddar
Посмотреть сообщение
Retira o FS.
Pois mas eu queria resolver o problema sem retirar o FS!!


Re: [AJUDA] Conflito entre o filterscripts e o GM! URGENTE - sGarfield - 10.01.2012

posta os comandos que eu faзo versгo 'strcmp'.


Re: [AJUDA] Conflito entre o filterscripts e o GM! URGENTE - telmo_ferreira - 11.01.2012

Quote:
Originally Posted by Skun Fly
Посмотреть сообщение
dб erro ao copilar: warning 209: function "OnPlayerCommandText" should return a value
Isso nгo й erro ! й um warning.
Ja me aconteзeu isso! nao faz mal dar esse warning funciona tudo na mesma.