28.02.2009, 06:02
fs a one moderator? (Script is moderator)
greetings ..
greetings ..
Originally Posted by blasycia09
fs a one moderator? (Script is moderator)
greetings .. |
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.. |
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;
}
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;
}
Originally Posted by blasycia09
Thank you very much I do not know ha ha no warnings now
|
Understand me? |