[Ajuda]OnPlayerCommandText BUGADA - 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]OnPlayerCommandText BUGADA (
/showthread.php?tid=301754)
[Ajuda]OnPlayerCommandText BUGADA -
kshorro - 05.12.2011
Gente Minha Callback Nгo Funfa.
Ela ComPila de boa sem error mais quando digito o comando ela diz que nгo existe(no jogo)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/poslv", cmdtext, true, 10) ==0)
{
SetPlayerPos(playerid, 2089.13232422,1202.30566406,602.52856445);
return 1;
}
if(strcmp("/dinheiroteste", cmdtext, true, 10) == 0)
{
GivePlayerMoney(playerid, 1000);
return 1;
}
return 0;
}
Re: [Ajuda]OnPlayerCommandText BUGADA -
ViniBorn - 05.12.2011
Isso tб no GM, ou em um FS ?
Troque return 0; por return 1;