What's wrong here?
#2

u missed Bracket
its like dat
PHP код:
CMD:givemoney(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdminLevel] >= 2)
    {
        new
            
targetidcash;
        if(
sscanf(params"ui"targetidcash)) return SendClientMessage(playerid0xE60000FF"Warning:{FFFFFF} /givemoney [playerid] [cash amount]");
        else
        {
            new 
string[128];
            
format(stringsizeof(string), "AdmLog: Administrator %s has rewarded %s money! (amount: %d)!"GetName(playerid), targetidcash);
            
SendClientMessageToAdmins(playeridstring);
            
GivePlayerMoney(targetidcash);
            }
    }
    return 
1;

Reply


Messages In This Thread
What's wrong here? - by BleverCastard - 24.04.2012, 20:17
Re: What's wrong here? - by [D]ry[D]esert - 24.04.2012, 20:22
Re: What's wrong here? - by ViniBorn - 24.04.2012, 20:22
Re: What's wrong here? - by BleverCastard - 24.04.2012, 20:37
Re: What's wrong here? - by tiernantheman - 24.04.2012, 20:39
Re: What's wrong here? - by BleverCastard - 24.04.2012, 20:41
Re: What's wrong here? - by BleverCastard - 24.04.2012, 20:58
Re: What's wrong here? - by MP2 - 24.04.2012, 21:10
Re: What's wrong here? - by BleverCastard - 24.04.2012, 21:15
Re: What's wrong here? - by MP2 - 24.04.2012, 21:19

Forum Jump:


Users browsing this thread: 1 Guest(s)