[Ajuda] Comando em determinada coordenada
#1

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!
Reply
#2

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

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 
Reply
#4

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...");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)