[Ajuda] Chat proximo erro
#1

Galera me ajudem a arrumar esse chat proximo ele ta com warning e nгo esta funcionando corretamente :\
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;
 }
 }
 }
Quem me ajudar agradeзo
Reply
#2

qual warning que erro ?
Reply
#3

Ta dando esses warning:
pawn Код:
C:\Users\Analia\Desktop\BmcV2.0\gamemodes\BRTruck.pwn(365) : warning 213: tag mismatch
C:\Users\Analia\Desktop\BmcV2.0\gamemodes\BR(373) : warning 213: tag mismatch
C:\Users\Analia\Desktop\BmcV2.0\gamemodes\BR(375) : warning 213: tag mismatch
E nгo ta aparecendo as mensagens sу aparece pra quem escreve...
Reply
#4

ta falando que a TAG ta incompativel
Reply
#5

Tente:
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] == 0)
 {
 new sStr[256];
 new Name[24];
 GetPlayerName(playerid,Name,24);
 format(sStr,128,"{FF0000}%s (%i): {00FFFF}%s",Name,playerid,text[1]);
 SendClientMessageToAll(0x00FFFFAA,sStr);
 PlayerPlaySound(i,1057,0.0,0.0,0.0);
 MSG[i] = 1;
 }
 MSG[i] = 0;
 return 0;
 }
 }
 }
Reply
#6

Quote:
Originally Posted by Detonador
Посмотреть сообщение
Tente:
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] == 0)
 {
 new sStr[256];
 new Name[24];
 GetPlayerName(playerid,Name,24);
 format(sStr,128,"{FF0000}%s (%i): {00FFFF}%s",Name,playerid,text[1]);
 SendClientMessageToAll(0x00FFFFAA,sStr);
 PlayerPlaySound(i,1057,0.0,0.0,0.0);
 MSG[i] = 1;
 }
 MSG[i] = 0;
 return 0;
 }
 }
 }
Vlw detonador vc й o cara Vou tentar da +rep
Reply
#7

Quote:
Originally Posted by Detonador
Посмотреть сообщение
Tente:
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] == 0)
 {
 new sStr[256];
 new Name[24];
 GetPlayerName(playerid,Name,24);
 format(sStr,128,"{FF0000}%s (%i): {00FFFF}%s",Name,playerid,text[1]);
 SendClientMessageToAll(0x00FFFFAA,sStr);
 PlayerPlaySound(i,1057,0.0,0.0,0.0);
 MSG[i] = 1;
 }
 MSG[i] = 0;
 return 0;
 }
 }
 }
Detonador eu achei um problema de qualquer distancia pode ver..
Ta tipo chat global
Reply
#8

Troca o SendClientMessageToAll por SendClientMessage(i,cor,sStr);
Reply
#9

SendClientMessageToall e pra galera toda do serve ne vei agora tu mato ''-
Reply
#10

Quote:
Originally Posted by darkxdll
Посмотреть сообщение
Troca o SendClientMessageToAll por SendClientMessage(i,cor,sStr);
Deu esse error nessa sua linha
pawn Код:
C:\Users\Analia\Desktop\BMCV2.0\gamemodes\BR.pwn(371) : error 017: undefined symbol "cor"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)