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