Jump to content
  • 0

Ajutor


DeadMau

Question

am urmatoarele warning-uri:

C:\Users\Aly\Desktop\SR The Best\gamemodes\SR.pwn(1845) : warning 219: local variable "text" shadows a variable at a preceding level
C:\Users\Aly\Desktop\SR The Best\gamemodes\SR.pwn(14435) : warning 219: local variable "text" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
cele doua linii:
public OnPlayerText(playerid,text[])
{
	if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))
	{
	    SendClientMessage(playerid, 0xFF0000FF, "*{CC00FF} You can only send a message once every two seconds.");
	    return 0;
	}
		if(!IsPlayerAdmin(playerid))
	{
		if(strlen(text) == strlen(szPlayerChatMsg[playerid]) && !strcmp(szPlayerChatMsg[playerid], text,  false))
		{
			SendClientMessage(playerid, 0xFF0000FF, "*{CC00FF} Please do not repeat yourself.");
			format(szPlayerChatMsg[playerid], 128, "%s", text);
		    return 0;
		}
	}
a doua:
public ChangeTextdraw3(text[])
{
        TextDrawHideForAll(Textdraw3);
        TextDrawSetString(Textdraw3,text);
        TextDrawShowForAll(Textdraw3);
        return 1;

iar cand intru pe server nu vad ce scriu pe chat,nici eu nici alti playeri

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.