[Pomoc] REPORT komanda


Započeo Bugi, Mart 01, 2013, 18:23:44 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Od 0
Detaljan opis problema: Gledao sam nesto na Wiki samp za komandu /report i evo :
CMD:report(playerid, params[])
{
    new string[128];
    if(!isnull(params))
    {
        SendClientMessage(playerid, -1, COL_RED, "Vase pitanje je poslato Adminima i Pomagacima /n Vase pitanje glasi:");
        format(string, sizeof(string), "%s", params); // Proof to the reporter, that the command worked.
        SendClientMessage(playerid, COLOR_YELLOW, string);
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerAdmin(playerid))
            {
                format(string, sizeof(string), "Pitanje od %s[%d]: %s", PlayerName(playerid), playerid, params);
                SendClientMessage(i, -1, COL_RED, string); // Send's the format to the online Rcon'ly Logged in Admins.
            }
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Report [Text]"); // Show's the player the Usage.
    }
    return 1;
}


Sad kad udjem u igru i posaljem report ne pise mi Ono Vas report je poslat blablabla.. Kako da popravim to?  :-\
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
RESPECT: Blaeks, Yui_Sang, Gagi, Kapetan Husein, Luksa, Slay, Denis_Lapi, Zoran(Dude)

Programski jezici koje koristim: C, C#, Visual Basic, HTML, CSS, PHP (tek ucim).


CMD:report(playerid, params[])
{
    new string[128];
    if(!isnull(params))
    {
        SendClientMessage(playerid, COL_RED, "Vase pitanje je poslato Adminima i Pomagacima");
		SendClientMessage(playerid, COL_RED, "Vase pitanje glasi:");
        format(string, sizeof(string), "%s", params); // Proof to the reporter, that the command worked.
        SendClientMessage(playerid, COLOR_YELLOW, string);
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerAdmin(playerid))
            {
                format(string, sizeof(string), "Pitanje od %s[%d]: %s", PlayerName(playerid), playerid, params);
                SendClientMessage(i, -1, COL_RED, string); // Send's the format to the online Rcon'ly Logged in Admins.
            }
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Report [Text]"); // Show's the player the Usage.
    }
    return 1;
}

Last nick: Paradox

Nece da moze :O
RESPECT: Blaeks, Yui_Sang, Gagi, Kapetan Husein, Luksa, Slay, Denis_Lapi, Zoran(Dude)

Programski jezici koje koristim: C, C#, Visual Basic, HTML, CSS, PHP (tek ucim).


vako probaj

CMD:report(playerid, params[])
{
    new string[128];
    if(!isnull(params))
    {
        SendClientMessage(playerid, COL_RED, "Vase pitanje je poslato Adminima i Pomagacima , Vase pitanje glasi:");
        format(string, sizeof(string), "%s", params); // Proof to the reporter, that the command worked.
        SendClientMessage(playerid, COLOR_YELLOW, string);
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerAdmin(playerid))
            {
                format(string, sizeof(string), "Pitanje od %s[%d]: %s", PlayerName(playerid), playerid, params);
                SendClientMessage(i, COL_RED, string); // Send's the format to the online Rcon'ly Logged in Admins.
            }
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Report [Text]"); // Show's the player the Usage.
    }
    return 1;
}
Poslednja Izmena: Mart 01, 2013, 19:01:57 POSLE PODNE od N1XTON
Pravim RP,DM,TDM,STUNT, Freeroam modove od 0 za pare, nacini placanja : Paypal ili banka

Jok ba, ovako stavi..

CMD:report(playerid, params[])
{
    new string[128];
    if(isnull(params)) return SendClientMessage(playerid, -1, ">> /report [text] <<");
    SendClientMessage(playerid, COL_RED, "Vase pitanje je poslato Adminima i Pomagacima , Vase pitanje glasi:");
        format(string, sizeof(string), "%s", params);
        SendClientMessage(playerid, COLOR_YELLOW, string);
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerAdmin(i))
            {
                format(string, sizeof(string), "Pitanje od %s[%d]: %s", PlayerName(playerid), playerid, params);
                SendClientMessage(i, COL_RED, string); 
            }
        }
    return 1;
}