05.07.2013, 16:37
Hmm, watch your code carefully:
pawn Код:
public OnPlayerText(playerid, text[])
{
new message[128], targetid; // You didn't define "targetid"
format(message, sizeof(message), "%s Says: %s", GetName(playerid), text);
if(ProxDetectorS(30.0, playerid, targetid)
{
ProxDetector(30.0, playerid, message, COLOR_WHITE);
}
if(ProxDetectorS(60.0, playerid, targetid)
{
ProxDetector(60.0, playerid, message, COLOR_GREY);
}
return 0;
}