Hi Guys i wanna know that how can we do this ! to /c i tried alot but it did'nt work i give you this
Example I have this
[pawn]}
else if (strcmp(cmd, "setnews", true) == 0) {
new szMsg[256], setnews[256];
tmp = strtok(cmdtext, idx);
if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, COLOR_RED, "You need to Rcon login first!");
else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c setnews text");
else {
format(file, sizeof(file), "/News/News.ini", "News");
format(setnews,sizeof(setnews),"By [%s]> %s ",gPlayers[playerid],cmdtext[7]);
dini_Set(file, "News", setnews);
SetTimer("SetTimer",2000);
}
return 1;[/pawn]
but it did'nt work through as it looks anyone can tell me that how to correct this when i type /c setnews so it says "Error:Unknown Command" need help!