[Help] I'm new
#1

fs a one moderator? (Script is moderator)

greetings ..
Reply
#2

Quote:
Originally Posted by blasycia09
fs a one moderator? (Script is moderator)

greetings ..
fs is a filterscript which goes in the filterscript folder.

Gm is a gamemode which goes in the gamemode folder.

Did that help?
Reply
#3

I throw good warnings

LosMafiosos.pwn(1811) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

here code:

SpamStrings[playerid] ++;
if(SpamStrings[playerid] >= MAX_SPAM)
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
SendClientMessage(playerid,0xCC0000AA,"Please wait 20 seconds before the spam again (spam protection).");
return 0;
}


help..
Reply
#4

Quote:
Originally Posted by blasycia09
I throw good warnings

LosMafiosos.pwn(1811) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

here code:

SpamStrings[playerid] ++;
if(SpamStrings[playerid] >= MAX_SPAM)
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
SendClientMessage(playerid,0xCC0000AA,"Please wait 20 seconds before the spam again (spam protection).");
return 0;
}


help..
maybe...

pawn Код:
SpamStrings[playerid] ++;
    if(SpamStrings[playerid] >= MAX_SPAM)
    {
        new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
        SendClientMessage(playerid,0xCC0000AA,"Please wait 20 seconds before the spam again (spam protection).");
            return 0;
    }
but erm, why are you getting the players name? your not using it.

maybe

pawn Код:
SpamStrings[playerid] ++;
    if(SpamStrings[playerid] >= MAX_SPAM)
    {
    new pName[MAX_PLAYER_NAME], string[64];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "%s was muted for 20 seconds (spam protection)", pName);
    SendClientMessageToAll(0xCC0000AA, string);
    return 0;
    }
Reply
#5

Thank you very much I do not know ha ha no warnings now
Reply
#6

Quote:
Originally Posted by blasycia09
Thank you very much I do not know ha ha no warnings now
no probs
Reply
#7

Well I tell them ...
Me in my server tnego a system where if you do you removes DM instantly.
Ami me gustaria that by DM automations you send to jail for 1 minute.

And I know how to remove that system to a DM.
For example: In /ZoneDM kill when you do not send to jail and if not in /ZoneDM sends you 1 minute to jail.

Understand me?


Well I hope your answers
Reply
#8

Quote:

Understand me?

No.

Please make it more clear.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)