10.03.2015, 00:01
Quote:
|
2 Warnings
Код:
./includes/callbacks.pwn(6674) : warning 217: loose indentation ./includes/callbacks.pwn(6676) : warning 219: local variable "string" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase ![]() |
(Let me get a blank gm hold for one second)
2nd warning: remove new string[128];
1st. Indent when you C&P The two { are over to the left.
pawn Код:
#include <a_samp>
new Masked[MAX_PLAYERS];
main(){}
public OnPlayerText(playerid, text[])
{
if(Masked[playerid] == 1)
{
new string[128];
format(string, sizeof(string), "Stranger says: %s", text);
SendClientMessageToAll(-1, string);
return 0;
}
return 0;
}
public OnPlayerConnect(playerid)
{
Masked[playerid]=1;
return 1;
}


