SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

 
 
Thread Tools Display Modes
Old 16/11/2016, 04:32 PM   #1
Catalin321
Little Clucker
 
Join Date: May 2015
Posts: 13
Reputation: 0
Default problema clear

cand folosesc comanda /clear nu apare nimik
nici Scrie: /clear <Name/Playerid> nu apare
pawn Code:
CMD:clear(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        new id,string[128],giveplayer[30],sendername[30];
        new tmpcar = GetPlayerVehicleID(playerid);
        if(IsACopCar(tmpcar) || IsANgCar(tmpcar) || IsAFbiCar(tmpcar) || IsALVPDCar(tmpcar) || PlayerToPoint(10.0,playerid,1762.0028,-1584.4185,1742.5264) || PlayerToPoint(10.0,playerid,253.9323,69.7215,1003.6406) || PlayerToPoint(10.0,playerid,229.4171,167.4609,1003.0234)  || PlayerToPoint(10.0,playerid,187.8352,1931.4265,17.6874))
        {
            if(sscanf(params, "u", id)) return SCM(playerid,COLOR_WHITE,"{FFFFFF}» Scrie: {FFFFFF}/clear [playerid/PartOfName]");
            if(IsPlayerConnected(id))
            {
                if(id != INVALID_PLAYER_ID)
                {
                    if(id == playerid)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "{30a030}[SIDERS]: {FFFFFF}Ne pare rau, dar nu-ti poti serge Wanted-ul singur.");
                        return 1;
                    }
                    GetPlayerName(id, giveplayer, sizeof(giveplayer));
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* You cleared the Records and Wanted Points of %s.", giveplayer);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "* Officer %s has cleared your Records and Wanted Points.", sendername);
                    SendClientMessage(id, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "* %s has cleared %s's Records and Wanted Points.", sendername, giveplayer);
                    SendTeamMessage(8, COLOR_LIGHTBLUE, string);
                    SendTeamMessage(3, COLOR_LIGHTBLUE, string);
                    SendTeamMessage(2, COLOR_LIGHTBLUE, string);
                    SendTeamMessage(1, COLOR_LIGHTBLUE, string);
                    SetPlayerWantedLevel(id, 0);
                    WantedPoints[id] = 0;
                    PlayerInfo[id][pWantedLevel] = 0;
                    ClearCrime(id);
                    if(gTeam[id]==4)
                    {
                        gTeam[id] = 3;
                        SetPlayerToTeamColor(id);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "{30a030}[SIDERS]: {FFFFFF}Ne pare rau, dar acest jucator nu este Online.");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "{30a030}[SIDERS]: {FFFFFF}Ne pare rau, dar nu faci parte din factiunea {000cff}Politia Romana{FFFFFF}.");
        }
    }
    return 1;
}
Catalin321 is offline  
Old 17/11/2016, 01:24 PM   #2
Lumineux
Huge Clucker
 
Lumineux's Avatar
 
Join Date: Apr 2013
Location: Romania, Prahova
Posts: 238
Reputation: 2
Default Re: problema clear

Daca nu folosesti parametrii (scrii '/clear') nu apare nimic ?
Dar daca folosesti parametrii ('clear [id]') ?
Nu apar nici macar mesajele de eroare ?
Code:
"{30a030}[SIDERS]: {FFFFFF}Ne pare rau, dar nu faci parte din factiunea {000cff}Politia Romana{FFFFFF}."
??
Lumineux is offline  
Old 17/11/2016, 05:53 PM   #3
Catalin321
Little Clucker
 
Join Date: May 2015
Posts: 13
Reputation: 0
Default Re: problema clear

nu apare nimik
Catalin321 is offline  
Old 18/11/2016, 10:59 AM   #4
Lumineux
Huge Clucker
 
Lumineux's Avatar
 
Join Date: Apr 2013
Location: Romania, Prahova
Posts: 238
Reputation: 2
Default Re: problema clear

La compilare nu ai erori sau warnings ?
Folosesti ultimele versiune de zcmd si sscanf ?
Lumineux is offline  
Old 19/11/2016, 12:14 PM   #5
Catalin321
Little Clucker
 
Join Date: May 2015
Posts: 13
Reputation: 0
Default Re: problema clear

nu imi da nimik si folosesc cele mai noi versiuni
Catalin321 is offline  
Old 22/11/2016, 03:44 PM   #6
Catalin321
Little Clucker
 
Join Date: May 2015
Posts: 13
Reputation: 0
Default Re: problema clear

ma ajutati cu cmd sa fad ce are??
Catalin321 is offline  
Old 26/11/2016, 12:22 PM   #7
iDarkS7orm
Big Clucker
 
Join Date: Dec 2015
Posts: 86
Reputation: 0
Default Re: problema clear

Ai cumva comenzi si zcmd si la onplayercommand?
iDarkS7orm is offline  
Old 07/12/2016, 10:31 AM   #8
Catalin321
Little Clucker
 
Join Date: May 2015
Posts: 13
Reputation: 0
Default Re: problema clear

nup nu am comenzi zcmd
Catalin321 is offline  
Old 13/12/2016, 07:29 PM   #9
DyduShxD
Gangsta
 
DyduShxD's Avatar
 
Join Date: Jan 2013
Location: United Kingdom
Posts: 611
Reputation: 6
Default Re: problema clear

arata te rog OnPlayerCommandText
DyduShxD is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problema clear Catalin321 Scripting Help 3 14/11/2016 07:18 AM
IRC bug help me to clear out Stgnature Scripting Help 4 24/06/2013 09:17 PM
/clear cmd help Beastlynoob Help Archive 1 18/06/2011 11:24 AM
How can I clear the chat...? PsYcH0pAtHiC Client Support 3 11/08/2009 02:22 PM


All times are GMT. The time now is 05:40 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.