Stats bugged - 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: Stats bugged (
/showthread.php?tid=252117)
Stats bugged -
berz - 30.04.2011
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.
Re: Stats bugged -
Wesley221 - 30.04.2011
Can't do alot, without a script ay, post the command
Re: Stats bugged -
Vince - 30.04.2011
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
Re: Stats bugged -
berz - 30.04.2011
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;
}
Re: Stats bugged -
Wesley221 - 30.04.2011
So, if u type /stats IG, it says "Unknown command"?
Re: Stats bugged -
berz - 30.04.2011
We fixed that, we just made new accs' and it happen right now, ty for help everyone