09.03.2015, 23:01
(
Последний раз редактировалось Trevor Gin; 28.06.2015 в 10:23.
)
<REMOVED>
if(Masked[playerid] == 1)
{
format(string, sizeof(string), "%s Stranger says: %s", accent, text);
SendClientMessageEx(i, COLOR_FADE1, string);
return 0;
}
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 |
#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;
}