24.05.2013, 00:33
So, I've decided to make a listing command to list songs on my web server for players to /play.
However, here's the issue. I'm a little stuck on how i should define everything and all that.
Here's the non-working code i currently have.
What am I doing wrong? What would be a better way to approach this?
EDIT: notice i didn't place in the SendClientMessages and things yet.
However, here's the issue. I'm a little stuck on how i should define everything and all that.
Here's the non-working code i currently have.
pawn Код:
CMD:music(playerid, params[])
{
if(sscanf(params,"s[250]",cmdstr)) return SendClientMessage(playerid, YELLOW, "USAGE: /music [House / Country / Rap / Other]");
{
case 1:
{
if(cmdstr == house)
{
return 1;
}
}
}
return 0;
}
EDIT: notice i didn't place in the SendClientMessages and things yet.