2 Questions ( Scoring and something else )
#5

Plus I get 1 Warning, beside the error.
This is how both look like:

Код:
C:\Documents and Settings\Epp\Desktop\Chio Server 2\Chio server\Xtreme Stunt~Drift~Race~DM\Xtreme Stunt~Drift~Race~DM\SOURCE\gamemodes\SSS.pwn(6851) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Documents and Settings\Epp\Desktop\Chio Server 2\Chio server\Xtreme Stunt~Drift~Race~DM\Xtreme Stunt~Drift~Race~DM\SOURCE\gamemodes\SSS.pwn(7419) : error 017: undefined symbol "PlayerName"
I'm really confused right now..

And this is where the warning is
Код:
public OnPlayerText(playerid,text[])
{
	SpamStrings[playerid] ++;
	if(SpamStrings[playerid] >= MAX_SPAM)
	{
	  new PlayerName[MAX_PLAYER_NAME];
		GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
		printf("(previous text of %s was blocked by antispam)", PlayerName);
		SendClientMessage(playerid,0xCC0000AA,"Please wait 20 seconds before talking again (Spam Protection).");
		return 0;
	}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)