14.02.2013, 23:40
Mover Um objeto a um player tipo /bolha [ID] uma bolha iria Ficar em volta dele Ajuda aew
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;
}
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.
#include a_samp
#include a_samp