13.07.2013, 23:45
Galera me ajudem a arrumar esse chat proximo ele ta com warning e nгo esta funcionando corretamente :\
Quem me ajudar agradeзo
pawn Код:
if(text[0] == ';')
{
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
for(new i; i != MAX_PLAYERS; i++)
{
new Float:p[3];
GetPlayerPos(i,p[0],p[1],p[2]);
if(IsPlayerInRangeOfPoint(playerid,15.0,p[0],p[1],p[2]))
{
new Float:MSG[3];
if(MSG[i] == false)
{
new sStr[256];
new Name[24];
GetPlayerName(playerid,Name,24);
format(sStr,128,"{FF0000}%s (%i): {00FFFF}%s",Name,playerid,text[1]);
SendClientMessage(i,0x00FFFFAA,sStr);
PlayerPlaySound(i,1057,0.0,0.0,0.0);
MSG[i] = true;
}
MSG[i] = false;
return 0;
}
}
}