SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (/showthread.php?tid=69121)



Help - stix - 16.03.2009

I got a server and i got a problem:

No commands work, and when i compile i dont have warnings or errors.

the only commands that work is givecash,gamehelp and pm/tpm. Can somebody tell me whats wrong?


Re: Help - mascii - 16.03.2009

return 0 insted of 1 on OnPlayerCommandText

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	return 0;
}



Re: Help - MenaceX^ - 16.03.2009

Show your OnPlayerCmdText public.
Quote:
Originally Posted by mascii
return 0 insted of 1 on OnPlayerCommandText

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	return 0;
}
This return just makes the server to say :Unknown command.
Instead of anything.


Re: Help - mascii - 16.03.2009

are u sure, because i thought it disabled commands in other filterscripts and gms


Re: Help - stix - 16.03.2009

then what i should do?


Re: Help - stix - 17.03.2009

sorry for the 2 post, but, somebody answer.!!!


Re: Help - [RP]Rav - 17.03.2009

make sure no return statements are flying around in OnPlayerCommandText at places where you don't need them