Stats bugged
#1

Hey all. Today at server i joined and saw that when i type /stats they are bugged when u need to check ur cars . Everything other is ok but when it needs to display Cars it says Unknown Commands o.o help guys and i didnt get any error in compileing.
Reply
#2

Can't do alot, without a script ay, post the command
Reply
#3

Check if you're not dividing by zero somewhere (e.g. percentage calculations) as that will bug the command and return the Unknown Command error. I have experience. xD
Reply
#4

Here is the code
Код:
	if (strcmp(cmd, "/stats", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (gPlayerLogged[playerid] != 0)
			{
				ShowStats(playerid,playerid);
				/*GetPlayerName(playerid, sendername, sizeof(sendername));
			    format(string, sizeof(string), "* %s flips open his PDA and looks at his stats.", sendername);
			    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);*/
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not Logged in!");
			}
		}
		return 1;
	}
Reply
#5

So, if u type /stats IG, it says "Unknown command"?
Reply
#6

We fixed that, we just made new accs' and it happen right now, ty for help everyone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)