So many errors
#4

pawn Код:
CMD:bailfriend(playerid, params[])
{
    new string[128], giveplayerid, reason[64];
    if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /bailfriend [playerid] [reason]");
    if(IsPlayerConnected(giveplayerid))
    {
        new year, month,day;
        getdate(year, month, day);
        Log("logs/bailfreind.log", string);
        SendClientMessageToAllEx(COLOR_LIGHTRED, string);
        WantedPoints[giveplayerid] = 0;
        PlayerInfo[suspect][pArrested] += 1;
        PlayerInfo[giveplayerid][pWantedLevel] = 0;
        PlayerInfo[giveplayerid][pBeingSentenced] = 0;
        SetPlayerToTeamColor(giveplayerid);
        SetPlayerWantedLevel(giveplayerid, 0);
        PlayerInfo[giveplayerid][pJailTime] = 0;
        SetPlayerPos(giveplayerid, 1529.6,-1691.2,13.3);
        SetPlayerInterior(giveplayerid,0);
        PlayerInfo[giveplayerid][pInt] = 0;
        SetPlayerVirtualWorld(giveplayerid, 0);
        PlayerInfo[giveplayerid][pVW] = 0;
        PlayerInfo[giveplayerid][pLocal] = 255;
    }
    GivePlayerCash(playerid, -5000);
    SendClientMessageEx(playerid, TEAM_CYAN_COLOR, "You succed to bail for your friend, in 5,000$.");
    return 1;
}
Reply


Messages In This Thread
So many errors - by yaron0600 - 11.04.2013, 11:55
Re: So many errors - by iJumbo - 11.04.2013, 11:58
Re: So many errors - by yaron0600 - 11.04.2013, 12:01
Re: So many errors - by iJumbo - 11.04.2013, 12:13
Re: So many errors - by MP2 - 11.04.2013, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)