SA-MP Forums Archive
[Pedido] Falar por /F - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Falar por /F (/showthread.php?tid=357836)



Falar por /F - Bruno Alves - 08.07.2012

Por ex:O chat й aberta ok? Mas tipo vc pode ter a opзгo de falar somente com os players em sua volta mais um ex: /f seutexto


Re: Falar por /F - CorTheZ_OwneeD - 08.07.2012

Prox Detector, usa ele


Re: Falar por /F - .FuneraL. - 08.07.2012

pawn Код:
if(!strcmp(cmdtext, "/f", true))
{
     new Float:x, Float:y, Float:z, Texto[128], String[128], Nome[24], tmp;
     tmp = strtok(cmdtext, idx);
     if(!strlen(tmp)) return SendClientMessage(playerid, -1, "/f [Texto]");
     GetPlayerPos(playerid, x, y, z);
     GetPlayerName(playerid, Nome, sizeof(Nome));
     format(String, sizeof(String), "%s: %s", Nome, Texto);
     for(new i = 0; i < MAX_PLAYERS; i++)
     {
          if(IsPlayerInRangeOfPoint(i, 30.0, x, y, z))
          {
                 SendClientMessage(i, -1, String);
          }
     }
     return 1;
}
Assim darб certo, se estiver errado, me corrijam.



Re: Falar por /F - Bruno Alves - 08.07.2012

C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(329) : error 017: undefined symbol "f"
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(332) : error 017: undefined symbol "sscanf"
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(346) : warning 225: unreachable code
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(329) : warning 203: symbol is never used: "CMD"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Deu esse erros e warnings


Re: Falar por /F - .FuneraL. - 08.07.2012

Quote:
Originally Posted by Bruno Alves
Посмотреть сообщение
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(329) : error 017: undefined symbol "f"
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(332) : error 017: undefined symbol "sscanf"
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(346) : warning 225: unreachable code
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(329) : warning 203: symbol is never used: "CMD"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Deu esse erros e warnings
Vocк usa strcmp entгo nй?


Re: Falar por /F - Bruno Alves - 08.07.2012

sim....


Re: Falar por /F - .FuneraL. - 08.07.2012

Quote:
Originally Posted by Bruno Alves
Посмотреть сообщение
sim....
Post editado, veja lб em cima e troque o Comando


Re: Falar por /F - Bruno Alves - 08.07.2012

cara desculpa ta encomodando mais me ajuda por favor, agr deu esses erros

C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(332) : error 006: must be assigned to an array
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(333) : error 035: argument type mismatch (argument 1)
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(332) : warning 204: symbol is assigned a value that is never used: "tmp"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Re: Falar por /F - .FuneraL. - 08.07.2012

Quote:
Originally Posted by Bruno Alves
Посмотреть сообщение
cara desculpa ta encomodando mais me ajuda por favor, agr deu esses erros

C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(332) : error 006: must be assigned to an array
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(333) : error 035: argument type mismatch (argument 1)
C:\Users\Bruno\Desktop\Brasil Top Killers\gamemodes\BTV.pwn(332) : warning 204: symbol is assigned a value that is never used: "tmp"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Manda as duas linhas pra eu ver.


Re: Falar por /F - Bruno Alves - 08.07.2012

pawn Код:
if(!strcmp(cmdtext, "/f", true))
{
     new Float:x, Float:y, Float:z, Texto[128], String[128], Nome[24], tmp;
linha:    [332] tmp = strtok(cmdtext, idx);
linha:    [333] if(!strlen(tmp)) return SendClientMessage(playerid, -1, "/f [Texto]");
     GetPlayerPos(playerid, x, y, z);
     GetPlayerName(playerid, Nome, sizeof(Nome));
     format(String, sizeof(String), "%s: %s", Nome, Texto);
     for(new i = 0; i < MAX_PLAYERS; i++)
     {
          if(IsPlayerInRangeOfPoint(i, 30.0, x, y, z))
          {
                 SendClientMessage(i, -1, String);
          }
     }
     return 1;
}