31.05.2010, 08:23
Okay, I Scripted This A While Back
And It's Never Worked
Everytime I Go IG And Type /ask Test
It Comes Up [QUESTION]John Sanders Has asked a Question: [Question: .]
It Only Comes Up with Teh Dot..
So here is The Code And help Would be Much Appreciated. =D
-John
And It's Never Worked
Everytime I Go IG And Type /ask Test
It Comes Up [QUESTION]John Sanders Has asked a Question: [Question: .]
It Only Comes Up with Teh Dot..
So here is The Code And help Would be Much Appreciated. =D
pawn Код:
if(strcmp(cmd,"/ask",true,4)==0) // Ask's a Question
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_TAN, "Correct Usage: /ask [Question]");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new question[128];
question = bigstrtok(cmdtext, idx);
format(string, sizeof(string), "[QUESTION] %s has Asked a Question: [Question: %s.]", sendername,question);
SendClientMessageToAdmins(COLOR_TAN, string,2);
SendClientMessage(playerid, COLOR_TAN, "Your Question Has been Sent To The Current Online Admins.");
return 1;
}
-John