give cash
#1

how can i make a /gc command? Here is what i made
pawn Код:
CMD:gc(playerid,params[])
{
        new pname[24], targetid, string[128];
        new cash = strval(tmp2);
        if(IsPlayerLuxAdmin(playerid))
        if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,-1,"USAGE: /gc [playerid]");
        if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, red, "ERROR: That player isn't online!");

        GetPlayerName(targetid, pname, 24);
        GivePlayerMoney(targetid,cash)
        format(string, 128, "** ADMIN CASH: You have been given %s.",cash);
        SendClientMessage(string,0xFF00FFFF, targetid);
        return 1;
}
I get these errors
pawn Код:
(262) : error 017: undefined symbol "tmp2"
(270) : error 035: argument type mismatch (argument 2)
pawn Код:
262: new cash = strval(tmp2);
270: SendClientMessage(string,0xFF00FFFF, targetid);
Reply


Messages In This Thread
Some Errors - by SnG.Scot_MisCuDI - 06.01.2012, 22:05
Re: give cash - by [BG]Gamer - 06.01.2012, 23:26
Re: give cash - by SnG.Scot_MisCuDI - 06.01.2012, 23:33
Re: give cash - by [BG]Gamer - 06.01.2012, 23:52
Re: give cash - by fordawinzz - 06.01.2012, 23:54
Re: give cash - by SnG.Scot_MisCuDI - 07.01.2012, 00:24
Re: give cash - by [ABK]Antonio - 07.01.2012, 00:33
Re: give cash - by Richie - 07.01.2012, 00:36

Forum Jump:


Users browsing this thread: 2 Guest(s)