If you Have Put The inc file correctly then it should work;
Use 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);
}
return 1;
}][/pawn]
But You Have To Add A News Folder in
Im Telling You Step By Step
1)Open Your ScriptFiles Folder
2)Create a Folder named News
3)Copy the config file from ur config server folder
4)Paste it on Your News Folder
5)Open up config.ini from news fodler
6)Clear All the text
7)Add This line on that "News=By [[VR]Ankit]> Server is Temporary now" without""
8)Save it
9)Rename it to News.ini
10)goto Server and do /c setnews [Text] After loggin through /admin [Pass]
Thanks for Reading My post