SA-MP Forums Archive
[Ajuda] Comando em determinada coordenada - 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: [Ajuda] Comando em determinada coordenada (/showthread.php?tid=615558)



Comando em determinada coordenada - JhowWatkins - 24.08.2016

Eu Nгo estou conseguindo pra por o comando em uma POS NESSA XYZ AQUI 330.7844,129.2914,1007.9657 , jб tentei de varias maneiras porem nгo consigo
PHP код:
    CMD:procurados(playeridparams[])
    {
            if(!
PlayerToPoint(9.5,playerid,330.7844,129.2914,1007.9657))
            if(
IsACopFCar(playerid))
            {
                
MEGAString[0] = EOS;
                new 
string[128];
                
strcat(MEGAString,"Nick\tID\tOrganizaзгo\tLevel de Procura\n");
                foreach(
Playeri)
                {
                    if(
GetPlayerWantedLevelEx(i) != && !IsACop(i) && GetPlayerOrg(i) != 12)
                    {
                        if(
GetPlayerWantedLevelEx(i) >= 10)
                        {
                            
GetPlayerName(igiveplayersizeof(giveplayer));
                            
format(stringsizeof string"%s\t%d\t%s\t{FF6347}%d\n"giveplayer,i,AbrevORG(i),WantedPoints[i]);
                            
strcat(MEGAString,string);
                        }
                        else
                        {
                            
GetPlayerName(igiveplayersizeof(giveplayer));
                            
format(stringsizeof string"%s\t%d\t%s\t%d\n"giveplayer,i,AbrevORG(i),WantedPoints[i]);
                            
strcat(MEGAString,string);
                        }
                    }
                }
                
ShowPlayerDialog(playerid99375"Suspeitos Atuais",MEGAString,"Ok","Sair");
            }
            else if(
GetPlayerOrg(playerid) == 3)
            {
                
MEGAString[0] = EOS;
                new 
string[128];
                
strcat(MEGAString,"Nick\tID\tOrganizaзгo\tLevel de Procura\n");
                foreach(
Playeri)
                {
                    if(
GetPlayerWantedLevelEx(i) != && !IsACop(i))
                    {
                        if(
GetPlayerOrg(i) == 12)
                        {
                            if(
GetPlayerWantedLevelEx(i) >= 10)
                            {
                                
GetPlayerName(igiveplayersizeof(giveplayer));
                                
format(stringsizeof string"%s\t%d\t%s\t{FF6347}%d\n"giveplayer,i,AbrevORG(i),WantedPoints[i]);
                                
strcat(MEGAString,string);
                            }
                            else
                            {
                                
GetPlayerName(igiveplayersizeof(giveplayer));
                                
format(stringsizeof string"%s\t%d\t%s\t%d\n"giveplayer,i,AbrevORG(i),WantedPoints[i]);
                                
strcat(MEGAString,string);
                            }
                        }
                    }
                }
                
ShowPlayerDialog(playerid99375"Suspeitos Atuais",MEGAString,"Ok","Sair");
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo e um oficial!");
            }
            return 
1;
    } 
OBS: SOU NOVATO!


Respuesta: Ajuda Duvida - Kanuy - 24.08.2016

Код:
if(!IsPlayerInRangeOfPoint(playerid,9.5,330.7844,129.2914,1007.9657)) return SendClientMessage(playerid, -1,"Nгo estб no local...");



Re: Respuesta: Ajuda Duvida - JhowWatkins - 24.08.2016

Quote:
Originally Posted by Kanuy
Посмотреть сообщение
Код:
if(!IsPlayerInRangeOfPoint(playerid,9.5,330.7844,129.2914,1007.9657)) return SendClientMessage(playerid, -1,"Nгo estб no local...");

Estб Dando erro, jб tentei fazer desse jeito! Erros:
PHP код:
 warning213tag mismatch
error001expected token","but found "-rational value-"
warning215expression has no effect
 
warning215expression has no effect
 
error001expected token";"but found ")"
error029invalid expressionassumed zero
 
error fatal107too many error messages on one line 



Re: Comando em determinada coordenada - Andinho - 24.08.2016

Vocк nao definiu oque acontece se ele nao tiver no local, use isso, e diga se fucionou.

pawn Код:
if(!PlayerToPoint(9.5,playerid,330.7844,129.2914,1007.9657))  return  SendClientMessage(playerid, -1,"Nгo estб no local...");