Help-me! Pawno error 010!
#1

Код:
#include <a_samp>
#include <streamer>
#include <zcmd>
#include <sscanf2>

// Variaveis dos Objetos!
new Portao;
Portao = CreateObject(980, 213.90, 1875.30, 13.15, 0.00, 0.00, 180.00);

// Comandos!
cmd(abrirbase, playerid, params[])
{
MoveObject(Portao, 213.90, 1875.30, 3.15, 2.0);
SendClientMessage(playerid,-1,"A base estб aberta!");
return 1;}

cmd(fecharbase, playerid, params[])
{
MoveObject(Portao, 213.90, 1875.30, 13.15, 2.0);
SendClientMessage(playerid,-1,"A base estб fechada!");
return 1;}
But i see this error:

Код:
C:\Users\Matheus Alves\Desktop\SERVER\filterscripts\base_cmds.pwn(8) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Help-me please!!!
Reply
#2

Put this line OnGameModeInIt.

pawn Код:
Portao = CreateObject(980, 213.90, 1875.30, 13.15, 0.00, 0.00, 180.00);
Reply
#3

Quote:
Originally Posted by Zamora
Посмотреть сообщение
Put this line OnGameModeInIt.

pawn Код:
Portao = CreateObject(980, 213.90, 1875.30, 13.15, 0.00, 0.00, 180.00);
Thanks man! But, it's a Filterscript, i put in "OnFilterScriptInit" and it worked
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)