What wrong with this [++rep]
#2

If you have faction defined try the code below and reply what happens.
Код:
	if ( strcmp( cmd, "/dfaction", true )== 0)//testdealers
    {
		new mmm;
		new tmp[256];
                new Faction;
		tmp = strtok(cmdtext, idx);
		mmm = strval(tmp);
		if(!strlen(tmp)) return SendClientMessage(playerid, DENN, "[SERVER] Usage: /dfaction [Money]");
		if(mmm <= 0) return SendClientMessage(playerid, DENN, "[SERVER] Usage: /dfaction [Money]");
        if(team[playerid] == 3)//dealers
        {
        	format(file, sizeof(file), Faction\\DEALERS.ini);
        	dini_IntSet(file, "BANK", dini_Int(file, "BANK")+mmm);
		    new string[80];
		    format(string, sizeof(string), "[SERVER] You have Deposit %d in your FACTION ACCOUNT.", mmm );
		    return SendClientMessage(playerid, ACC, string);
		}
Reply


Messages In This Thread
What wrong with this [++rep] - by Amine_Mejrhirrou - 05.11.2012, 13:09
Re: What wrong with this [++rep] - by Laure - 05.11.2012, 13:14
Re : What wrong with this [++rep] - by Amine_Mejrhirrou - 05.11.2012, 13:21
Re: What wrong with this [++rep] - by Laure - 05.11.2012, 13:27
Re : What wrong with this [++rep] - by Amine_Mejrhirrou - 05.11.2012, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)