Commands not working.
#1

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?
Reply
#2

post one of the commands here.
Reply
#3

What does it say when you run the command, and show us OnPlayerCommandPerformed(playerid, cmdtext[], success)
Reply
#4

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;
}

Reply
#5

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.
Reply
#6

So, even though onplayercommandtext just return's 1, I should still remove it?
Reply
#7

Well, I removed onplayercommand text, and the return 1 part. And still, the commands are not working. Anymore ideas?
Reply
#8

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
Reply
#9

Lowkey bump. Any ideas of why MySQL could be affecting the commands?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)