How to?
#4

Quote:
Originally Posted by xXitsgodzillaXx
Посмотреть сообщение
pawn Код:
CMD:News(playerid, params[])
    {
        new file[128];
        format(file, sizeof(file), "News.ini");
        if(IsPlayerAdmin(playerid)){
        new string[256];
        strmid(string, params, 6, 256);
        dini_Set(file, "News", string);
        new thing[256];
        thing = dini_Get(file, "News");
        format(string, sizeof(string), "Server News: %s", thing);
        SendClientMessage(playerid, 0x006400FF, string);

        }
        else
        {
        SendClientMessage(playerid, 0x006400FF, "You have to be logged into RCON in order to change the News!");
        }
        return 1;
        }
let me know if you get any errors i didnt get any but yeah.
It did not show any error/warning but it did not work in game.
Reply


Messages In This Thread
How to? - by DarkB0y - 18.05.2013, 14:07
Re: How to? - by DeMoX - 18.05.2013, 14:24
Re: How to? - by xXitsgodzillaXx - 18.05.2013, 14:25
Re: How to? - by DarkB0y - 18.05.2013, 14:35
Re: How to? - by xXitsgodzillaXx - 18.05.2013, 14:38
AW: How to? - by Blackazur - 18.05.2013, 14:38
Re: AW: How to? - by NL-Sultan - 18.05.2013, 14:43
Re: How to? - by DarkB0y - 18.05.2013, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)