What go's wrong here
#1

Hello guys,

i scripted a RefundBox for new players with this pawn:

pawn Код:
CMD:getrefund(playerid, params[])
{
    {
        if(IsAtRefundBox(playerid))
        {
            if(PlayerInfo[playerid][pLevel] == 1)
            {

                new giveplayerid;
                if(sscanf(params, "udd", giveplayerid))
                {
                    PlayerInfo[giveplayerid][pCrack] += 25;
                }
                {
                    PlayerInfo[giveplayerid][pPot] += 25;
                }
                {
                    PlayerInfo[giveplayerid][pAccount] += 1000000;
                }
                {
                    GivePlayerCash(giveplayerid, 300000);
                }
                {
                    PlayerInfo[giveplayerid][pMats] += 50000;
                }
                {
                    PlayerInfo[giveplayerid][pTokens] += 50;
                }
                {
                    PlayerInfo[giveplayerid][pDonateRank] = 1;
                    PlayerInfo[giveplayerid][pTempVIP] = 43200;
                    PlayerInfo[giveplayerid][pBuddyInvited] = 1; // Temp vip 43200 30 dagen
                }
                {
                    PlayerInfo[giveplayerid][pLevel] = 4;
                    SetPlayerScore(giveplayerid, PlayerInfo[giveplayerid][pLevel]);
                }
                {
                    format(PlayerInfo[giveplayerid][pFlag], 128, "Free Car (New Player Refund)");
                }
                {
                    SendClientMessageEx(playerid, COLOR_GREEN, "You received your Refund. Check /stats for what you got.");
                    SendClientMessageEx(playerid, COLOR_GREEN, "We hope you have a nice stay.");
                }
            }
        }
    }
    return 1;
}
The command works.
But id 0 gets the stuff if id 1 or 2 or 3 typs /getrefund

What do i need to change about this ??
Please HEEELP!

Greets:
Reply


Messages In This Thread
What go's wrong here - by Just rp - 24.02.2012, 09:49
Re: What go's wrong here - by Kaperstone - 24.02.2012, 09:53
Re: What go's wrong here - by Twisted_Insane - 24.02.2012, 09:55
Re: What go's wrong here - by Just rp - 24.02.2012, 09:57
Re: What go's wrong here - by Just rp - 24.02.2012, 10:05
Re: What go's wrong here - by Kaperstone - 24.02.2012, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)