16.07.2010, 08:49
hmm good how about this:
if(strcmp(cmd, "/request", true) == 0 || strcmp(cmd, "/req", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(JustReported[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "** Wait 1 minute after sending a next request! ");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/req)uest[song name] [Artist]");
return 1;
}
if(strcmp(cmd, "/request", true) == 0 || strcmp(cmd, "/req", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(JustReported[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "** Wait 1 minute after sending a next request! ");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/req)uest[song name] [Artist]");
return 1;
}