[Ajuda] SetPlayerPos
#1

[SIZE="<font><font>5</font></font>"]
pawn Код:
C:\Users\Acer\Documents\[GM] Brasil Knight Games\gamemodes\BKG.pwn(145) : error 010: invalid function or declaration
C:\Users\Acer\Documents\[GM] Brasil Knight Games\gamemodes\BKG.pwn(148) : error 021: symbol already defined: "SetPlayerPos"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
pawn Код:
else if (PlayerToPoint(3.0, playerid,1481.0686,-1772.3140,18.7958))
pawn Код:
SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);

[/SIZE]
Reply
#2

Manda o cуdigo completo.
Reply
#3

Sem o codigo completo nгo conseguiremos ajuda-lo..
Reply
#4

Sem o cуdigo fica complicado, mas talvez PlayerToPoint esteja errado os parвmetros.
Reply
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/Ajuda", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, CREDITOS, DIALOG_STYLE_MSGBOX, "Brasil Knight Games - Ajuda","/Ajudachar - Ajuda Para Seu Personagem.\n/Ajudaemprego - Ajuda Para Seu Emprego.\n/Ajudaemp - Ajuda Para Sua Empresa.\n/Ajudacasa - Ajuda Para Sua Casa.\n/Ajudalider - Ajuda Se Voce For Lider.\n/Ajudavip - Comandos VНP.\n/Ajudasocio - Comandos Sуcio.\n/Relatorio - Comunicar Com Os Administradores.\n/Animlist - Lista De Animaзoes.","Ok","Sair");
        return 1;
    }

    if(strcmp("/Ajudachar", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------[Ajuda Char]--------------------------------------------------------------");
        SendClientMessage(playerid, COLOR_WHITE,"BKG > /ajuda /logar /rg /website /relatorio /duvida (/an)uncio /eu");
        SendClientMessage(playerid, COLOR_WHITE,"BKG > /meuskin /pagar /horas /gps /beber /setint /livrardrogas /livrarmateriais");
        SendClientMessage(playerid, COLOR_WHITE,"BKG > /mudarlocal /comprararma /loteria /alugarcasa /assaltar");
        SendClientMessage(playerid, COLOR_WHITE,"BKG > /abastecer /contrato /aceitar /cancelar /ejetar /servico /casas(Ver Casas Livres)");
        SendClientMessage(playerid, COLOR_WHITE,"BKG > /orelhao /desligarorelhao /localizar /alugarcarro /comprarnivel");
        SendClientMessage(playerid, COLOR_WHITE,"BKG > /empregos /comprar /alugarquarto /desalugar /minhaslicencas /mostrarlicencas");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------[Fim Ajuda Char]-----------------------------------------------------------");
        return 1;
    }
    return 1;
}
     else if (PlayerToPoint(3.0, playerid,1481.0686,-1772.3140,18.7958))
     {
     //Prefeitura Entrada
     SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
     GameTextForPlayer(playerid, "~w~Prefeitura ~y~Los Santos",5000,1);
     SetPlayerVirtualWorld(playerid, 0);
     SetPlayerInterior(playerid,3);
     SetPlayerFacingAngle(playerid, 0);
     PlayerInfo[playerid][pInt] = 3;
     }
Reply
#6

Quote:
Originally Posted by Juniiro3
Посмотреть сообщение
Sem o cуdigo fica complicado, mas talvez PlayerToPoint esteja errado os parвmetros.
pode ter tambem duas #include <a_samp> (por causa do erro da SetPlayerPos) ou tambem estar faltando brackets
Reply
#7

Acho que seria isso:
pawn Код:
if (PlayerToPoint(playerid, 3.0 , 1481.0686,-1772.3140,18.7958))
https://sampwiki.blast.hk/wiki/PlayerToPoint

#Edit,

Vocк colocou o cуdigo "else if..." no local errado. o.o
Reply
#8

Esse cуdigo:

pawn Код:
else if (PlayerToPoint(3.0, playerid,1481.0686,-1772.3140,18.7958))
     {
     //Prefeitura Entrada
     SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
     GameTextForPlayer(playerid, "~w~Prefeitura ~y~Los Santos",5000,1);
     SetPlayerVirtualWorld(playerid, 0);
     SetPlayerInterior(playerid,3);
     SetPlayerFacingAngle(playerid, 0);
     PlayerInfo[playerid][pInt] = 3;
     }
Nгo estб em nenhuma callback.
Reply
#9

Quote:
Originally Posted by Juniiro3
Посмотреть сообщение
Esse cуdigo:

pawn Код:
else if (PlayerToPoint(3.0, playerid,1481.0686,-1772.3140,18.7958))
     {
     //Prefeitura Entrada
     SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
     GameTextForPlayer(playerid, "~w~Prefeitura ~y~Los Santos",5000,1);
     SetPlayerVirtualWorld(playerid, 0);
     SetPlayerInterior(playerid,3);
     SetPlayerFacingAngle(playerid, 0);
     PlayerInfo[playerid][pInt] = 3;
     }
Nгo estб em nenhuma callback.
Ninja maldito
Reply
#10

Quote:
Originally Posted by DanDRT
Посмотреть сообщение
Ninja maldito
HeHe Tem que ser nй kkk
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)