Help with Offline set cash
#5

Quote:
Originally Posted by cosbraa
Посмотреть сообщение
if(fexist(string))
i just changed that thing.its still can't find the users.ini in scriptfile.
here is the new one i change.
pawn Код:
CMD:osetcash(playerid,params[])
{
    new name[100], amount;
    if(PlayerInfo[playerid][pAdmin] >= 4)
    if(sscanf(params,"s[100]d", name, amount)) return SendClientMessage(playerid, 0xFF0000FF,"Syntax: /osetcash [name][amount]");
    new string[128];
    format(string,sizeof(string),"Users/%s.ini",params);
    if(fexist(string))
    {
        new INI:File = INI_Open(string);
        INI_SetTag(File,"data");
        INI_WriteInt(File,"Cash", amount);
        INI_Close(File);
        format(string, sizeof(string), "{FFFF33}[Admin-Warning]{FF0000}: {FFFFFF}%s has Offline give cash to %s.", GetPlayerNameEx(playerid), params,amount);
        AdminBroadCast(COLOR_LIGHTRED, string);
    }
    else { SendClientMessage(playerid,COLOR_YELLOW,"{FF0000}..::{FF6347}[Database]:Account not found{FF0000}::.."); }
    return 1;
}
Reply


Messages In This Thread
Help with Offline set cash - by zionx08 - 04.12.2012, 08:58
Re: Help with Offline set cash - by Jarnu - 04.12.2012, 09:05
Re: Help with Offline set cash - by zionx08 - 04.12.2012, 09:25
Re: Help with Offline set cash - by cosbraa - 04.12.2012, 09:27
Re: Help with Offline set cash - by zionx08 - 04.12.2012, 09:33
Re: Help with Offline set cash - by cosbraa - 04.12.2012, 09:41
Re: Help with Offline set cash - by Konstantinos - 04.12.2012, 09:42
Re: Help with Offline set cash - by zionx08 - 04.12.2012, 09:48
Re: Help with Offline set cash - by Konstantinos - 04.12.2012, 09:52
Re: Help with Offline set cash - by zionx08 - 04.12.2012, 10:03

Forum Jump:


Users browsing this thread: 1 Guest(s)