SA-MP Forums Archive
[Help] I'm new - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] I'm new (/showthread.php?tid=67261)



[Help] I'm new - blasycia09 - 28.02.2009

fs a one moderator? (Script is moderator)

greetings ..


Re: [Help] I'm new - Nimphious - 28.02.2009

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?


Re: [Help] I'm new - blasycia09 - 28.02.2009

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..


Re: [Help] I'm new - Nimphious - 28.02.2009

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;
    }



Re: [Help] I'm new - blasycia09 - 28.02.2009

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


Re: [Help] I'm new - Nimphious - 28.02.2009

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


Re: [Help] I'm new - blasycia09 - 28.02.2009

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


Re: [Help] I'm new - Nimphious - 28.02.2009

Quote:

Understand me?

No.

Please make it more clear.