Mod:gf
Pomoć: dugo nisam skriptao i sad poÄeo opet, dodao sam ovo iz jednog gm-a:
if(strfind( text, "geforce", true) != -1 || strfind( text, "gf", true) != -1 || strfind( text, "craft", true) != -1 || strfind( text, "street", true) != -1 || strfind( text, "dmz", true) != -1 || strfind( text, "server", true) != -1
|| strfind( text, ".com", true) != -1 || strfind( text, ".net", true) != -1 || strfind( text, ".org", true) != -1 || strfind( text, ".info", true) != -1 || strfind( text, ".tk", true) != -1 || strfind( text, "croherze", true) != -1
|| strfind( text, "croherza", true) != -1 || strfind( text, "croherzegovina", true) != -1 || strfind( text, "underline", true) != -1|| strfind( text, "underground", true) != -1)
{
new count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo > 0)
{
count++;
}
}
}
if (count == 0)
{
SendClientMessage(playerid,COLOR_RED," |ExpiritusACS| {FFFFFF}- Izbaceni ste sa servera zbog reklamiranja!");
Kick(playerid);
return 1;
}
else
{
format(string, sizeof(string), "[!] %s: %s", ime, text);
SendAdminMessage(COLOR_RED, string);
}
return 0;
}
errori:
warning 219: local variable "count" shadows a variable at a preceding level
error 022: must be lvalue (non-constant)
warning 215: expression has no effect
warning 213: tag mismatch
warning 205: redundant code: constant expression is zero
warning 204: symbol is assigned a value that is never used: "count"