Jump to content
  • 0

fs moveobject...


amaru

Question

Am gasit la tutoriale un tutorial de-al lui heaton si l-am facut in pawno doar ca imi da o eroare...

#include <a_samp>
new banca;
public FilterScriptInit()
{
banca = CreateObject(968,1646.75427200,-1145.59912100,24.01361500,0.00000000,-91.10023213,0.85943669); //object(23)
return 1;
}

public OnFilterScriptExit()
{
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/bankclose", true) == 0){
        MoveObject(banca, 1646.75427200,-1145.59912100,24.01361500,10);
        return 1;
        }
if (strcmp(cmdtext, "/bankopen", true) == 0){
        MoveObject(banca, 1646.65966800,-1145.64868200,23.64066900,10);
        return 1;
        }
	}
	return 0;
}
D:\GAMES\gamemode\Trafic\filterscripts\banca2.pwn(3) : warning 235: public function lacks forward declaration (symbol "FilterScriptInit")
D:\GAMES\gamemode\Trafic\filterscripts\banca2.pwn(23) : warning 209: function "OnPlayerCommandText" should return a value
D:\GAMES\gamemode\Trafic\filterscripts\banca2.pwn(24) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Poftim no erors no warnings

#include <a_samp>
new banca;

public OnFilterScriptInit()
{

banca = CreateObject(968,1646.75427200,-1145.59912100,24.01361500,0.00000000,-91.10023213,0.85943669); //object(23)
return 1;
}

public OnFilterScriptExit()
{
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/bankclose", true) == 0){
        MoveObject(banca, 1646.75427200,-1145.59912100,24.01361500,10);
        return 1;
        }
if (strcmp(cmdtext, "/bankopen", true) == 0){
        MoveObject(banca, 1646.65966800,-1145.64868200,23.64066900,10);
        return 1;
        }
return 0;
}

Link to comment
Share on other sites

Guest Dorin

Pai vreau sa fac o poarta  si am incercat si tot incercat dar nu merge imi da erori si imi face o multime de nervi ...X(. Si de aia vreau sa imi faci tu o poarta sa vad Sa nu mai mai chinui >...te rog hai dami id de mess

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.