Unknown command - 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: Unknown command (
/showthread.php?tid=625598)
Unknown command -
Face9000 - 03.01.2017
Can someone tell me why this top5 cmd doesn't work?
Код:
CMD:top5(playerid)
{
new string[128], names[24];
new handle = SQL::OpenEx(SQL::MREAD, "players", "p_score", "", "", "", -1, 10, -1, "Score");
SQL_GetCallback(handle, i)
{
SQL::ReadString(handle, "Name", names, 24, i);
format(string, sizeof(string), "Name %d : %s", i, names);
SendClientMessage(playerid, -1, string);
}
SQL::Close(handle);
return 1;
}
When i type it, it says "Unknown command".
I'm using Easy MySQL include.
Respuesta: Unknown command -
Whillyrez - 04.01.2017
I dont know if it's the solution, but try
PHP код:
CMD:top5(playerid, params[])
Re: Unknown command -
ISmokezU - 04.01.2017
You need to add params to the command.
Edit: Should've refresh before posting.
Re: Unknown command -
oMa37 - 04.01.2017
He didn't use the params parameter in the CMD, no need for it then.