One Question
#6

Код:
YCMD:whish(playerid, params[], help)
{
    #pragma unused help
    new whish[128-MAX_PLAYER_NAME-10]; // 5 cells lower cuz of extra chars
    if(sscanf(params, "s[128]", whish)) return SendClientMessage(playerid, -1, "Usage: /whish [text]");
    else if(strlen(whish) <= 10) return SendClientMessage(playerid, -1, "Please input more than 10 characters!");
    new pNm[24];
    GetPlayerName(playerid, pNm, 24);
    new string[128];
    format(string, 128, "|%s suggest: %s\n", pNm, whish);
    new File:sFile;
    sFile = fopen("whishes.txt", io_append);
    fwrite(sFile, string);
    fclose(sFile);
    return true;
}
Reply


Messages In This Thread
One Question - by mikjo - 09.12.2013, 19:58
Re: One Question - by xVIP3Rx - 09.12.2013, 20:24
Re: One Question - by mikjo - 09.12.2013, 20:27
Re : One Question - by FilesMAker - 09.12.2013, 20:30
Re: One Question - by mikjo - 09.12.2013, 20:31
Re: One Question - by erminpr0 - 09.12.2013, 21:19
Re: One Question - by Threshold - 10.12.2013, 01:05

Forum Jump:


Users browsing this thread: 1 Guest(s)