[Ajuda] Unknown command ajudaa!
#1






Tб dando unknown command. Mas estб tudo certo, em FS isso funciona mas adaptado pro gm nгo!

pawn Код:
if (strcmp("/abrirporta", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Porta 0
        {
            MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "Porta 0 aberta!");
        }
Ele compila sem erro nem warning =/
Reply
#2

Esta faltando return no comando.
Reply
#3

Quote:
Originally Posted by matheus_alcapone
Посмотреть сообщение
Esta faltando return no comando.
Postei sу uma parte do comando! Aн vai todo ele.

pawn Код:
if (strcmp("/abrirporta", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Porta 0
        {
            MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "Porta 0 aberta!");
        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Porta 1
        {
            MoveObject(door1,1483.79003906,-1762.42504883+1.25,3284.23608398,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "Porta 1 aberta!");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Porta 2
        {
            MoveObject(door2,1479.85998535-1.25,-1758.31994629,3284.23388672,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "Porta 2 aberta!");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Porta 3
        {
            MoveObject(door3,1467.06701660-1.25,-1758.31994629,3284.23388672,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "Porta 3 aberta!");
        }
        return 1;
    }
Reply
#4

alguйm? rep ++
Reply
#5

O ъltimo return de OnPlayerCommandText й true ou false?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)