15.03.2009, 15:43
That's because you use 2 strtok's one "hogs" the first word, and the second one takes what's left.
You have 2 things in there to detect if the player rights nothing.. see why that might be considered pointless? Try this:
You have 2 things in there to detect if the player rights nothing.. see why that might be considered pointless? Try this:
pawn Код:
if(strcmp(cmd, "/ask", true) == 0) // Available for everyone: ask a q to admins
{
{
question = bigstr(cmdtext,idx);
if(!strlen(question)) return SendClientMessage(playerid, ORANGE, "USAGE: /ask [Question]");
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new question[128];
format(string, sizeof(string), "%s Asks A Question: '%s'", sendername,question);
SendClientMessageToAdmins(ADMIN_RED, string,1);
SendClientMessage(playerid, GREEN, "Your question has been sent to the current online admins. Thank you.");
}
}
return 1;
}