Unknown command
#1

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

I dont know if it's the solution, but try
PHP код:
CMD:top5(playeridparams[]) 
Reply
#3

You need to add params to the command.

Edit: Should've refresh before posting.
Reply
#4

He didn't use the params parameter in the CMD, no need for it then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)