Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Bugi poslato Mart 01, 2013, 18:23:44 POSLE PODNE

Naslov: [Pomoc] REPORT komanda
Poruka od: Bugi poslato Mart 01, 2013, 18:23:44 POSLE PODNE
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):
Naslov: Odg: [Pomoc] REPORT komanda
Poruka od: Joey_ poslato Mart 01, 2013, 18:26:18 POSLE PODNE
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;
}
Naslov: Odg: [Pomoc] REPORT komanda
Poruka od: Bugi poslato Mart 01, 2013, 18:57:33 POSLE PODNE
Nece da moze :O
Naslov: Odg: [Pomoc] REPORT komanda
Poruka od: N1XTON poslato Mart 01, 2013, 19:01:03 POSLE PODNE
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;
}
Naslov: Odg: [Pomoc] REPORT komanda
Poruka od: Ermin. poslato Mart 02, 2013, 16:28:45 POSLE PODNE
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;
}