Commands not working. - 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)
+--- Thread: Commands not working. (
/showthread.php?tid=623749)
Commands not working. -
Thom9son - 04.12.2016
So, I've just finished up a working registration/saving system, and now when I try
any of my commands, they don't work. Help, please?
Re: Commands not working. -
AnthonyDaBestt - 04.12.2016
post one of the commands here.
Re: Commands not working. - iLearner - 04.12.2016
What does it say when you run the command, and show us OnPlayerCommandPerformed(playerid, cmdtext[], success)
Re: Commands not working. -
Thom9son - 04.12.2016
Apologies, I used ZCMD.
Example of one of my commands that does not work:
Quote:
CMD:getmycoords(playerid,params[])
{
new Float: Position[3], string[128];
GetPlayerPos(playerid,Position[0],Position[1],Position[2]);
format(string,sizeof(string),"Your current position: X: %f, Y: %f, Z: %f", Position[0],Position[1],Position[2]);
SendClientMessage(playerid,COLOUR_BLUE,string);
return 1;
}
|
Re: Commands not working. -
GoldenLion - 04.12.2016
I heard if you use OnPlayerCommandText with ZCMD then the commands won't work, I'm not sure though, but check if you have OnPlayerCommandText anywhere in your gamemode or filterscripts.
Re: Commands not working. -
Thom9son - 04.12.2016
So, even though onplayercommandtext just return's 1, I should still remove it?
Re: Commands not working. -
Thom9son - 04.12.2016
Well, I removed onplayercommand text, and the return 1 part. And still, the commands are not working. Anymore ideas?
Re: Commands not working. -
Thom9son - 04.12.2016
After some trial and error, I have figured out that the commands work when I am not using the MySQL registration. Here is a pastebin of my gamemode. Can somebody please check it out and tell me what the issue could be? As in, why is the MySQL registration stopping commands from working?
Pastebin:
http://pastebin.com/YGYKBdeg
Re: Commands not working. -
Thom9son - 05.12.2016
Lowkey bump. Any ideas of why MySQL could be affecting the commands?