[Help] rate command 1-10.
#9

Quote:
Originally Posted by Ken97
Посмотреть сообщение
I won't do the saving system for you. This can be done via fread and fwrite or dini.
pawn Код:
CMD:rate(playerid, params[])
{
    new rate;
    if(sscanf(params, "i", rate)); return SendClientMessage(playerid, -1, "USAGE: /rate (1-10)");
    {
        if(rate < 1 || rate > 10) return SendClientMessage(playerid, -1, "1-10");
        new pName[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string,sizeof(string), "%s rated %d/10" , pName, rate);
        SendClientMessageToAll(-1, string);
       
        //Actual Saving
        format(string,sizeof(string), "%d/10", rate);
        //Do your save stuff
    }
    return 1;
}
You didn't help me.

Quote:
Originally Posted by XStormiest
Посмотреть сообщение
pawn Код:
stock CalculateMedia(number,number2)
  {
        new result,reduce;
        result = number + number2;
        reduce = result/2;
       return reduce;
  }
Thank you.
Reply


Messages In This Thread
[Help] rate command 1-10. - by Activest - 30.03.2013, 14:14
Re: [Help] rate command 1-10. - by RajatPawar - 30.03.2013, 14:20
Re: [Help] rate command 1-10. - by Activest - 30.03.2013, 14:42
Re: [Help] rate command 1-10. - by Activest - 31.03.2013, 13:31
Re: [Help] rate command 1-10. - by Neil. - 31.03.2013, 13:35
Re: [Help] rate command 1-10. - by Activest - 31.03.2013, 13:41
Re: [Help] rate command 1-10. - by Neil. - 31.03.2013, 13:51
Re: [Help] rate command 1-10. - by XStormiest - 31.03.2013, 13:51
Re: [Help] rate command 1-10. - by Activest - 31.03.2013, 14:40

Forum Jump:


Users browsing this thread: 2 Guest(s)