[Ajuda] Mover objeto
#1

Mover Um objeto a um player tipo /bolha [ID] uma bolha iria Ficar em volta dele Ajuda aew
Reply
#2

pawn Code:
new obj;
 
public OnGameModeInit()
{
    obj = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    return 1;
}
 
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/moveobject", true) == 0)
    {
        new string[50];
        new movetime = MoveObject(obj, 0, 0, 10, 2.00);
        format(string, sizeof(string), "Objeto irб terminar de mover em %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
        return 1;
    }
    return 0;
}
Reply
#3

HTML Code:
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(3) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(5) : error 017: undefined symbol "CreateObject"
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(9) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandText")
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(11) : error 017: undefined symbol "strcmp"
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(14) : error 017: undefined symbol "MoveObject"
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(15) : error 017: undefined symbol "format"
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(15) : warning 202: number of arguments does not match definition
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(15) : warning 202: number of arguments does not match definition
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(15) : warning 202: number of arguments does not match definition
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(16) : error 017: undefined symbol "SendClientMessage"
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(14) : warning 204: symbol is assigned a value that is never used: "movetime"
C:\Users\Ricardo\Desktop\Coisas\GM\filterscripts\s.pwn(5) : warning 204: symbol is assigned a value that is never used: "obj"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Dando erro '-'
Reply
#4

No topo do script tem
pawn Code:
#include a_samp
Reply
#5

Nгo Tem :l
Reply
#6

Entao tipo Seria Mais ou menos /suitonn [ID]Do player E iria aparecer uma Bolha De agua em volta dele Teria como fazer para mim aew ?
Reply
#7

Se nгo tem coloque

pawn Code:
#include a_samp
'-'
Reply
#8

Quote:
Originally Posted by Schocc
View Post
No topo do script tem
pawn Code:
#include a_samp
Quote:
Originally Posted by derpinho123
View Post
Nгo Tem :l
Quer fazer um GM/FS sem isso .-.'

usa MoveObject

Wiki: MoveObject
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)