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):
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;
}
Nece da moze :O
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;
}
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;
}